Girish Chhugani
Posts: 0
Joined: Thu Apr 17, 2014 10:18 pm

uploadMultipleFilesHelper not working

Hi, uploadMultipleFilesHelper works fine in mobile preview but throws an error on the iphone appery tester. I don't mind using the old way of uploading but can't seem to find it. Please advice. Get Bad request error on the iphone appery tester.

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

uploadMultipleFilesHelper not working

Hi Girish,

Not sure I fully understand what you're trying to do. Could you please post the code that is not working?

Also try debugging with Weinre: http://docs.appery.io/documentation/d...

Girish Chhugani
Posts: 0
Joined: Thu Apr 17, 2014 10:18 pm

uploadMultipleFilesHelper not working

uploadMultipleFilesHelper(uploadProfilePicture, Appery('chooseImage'));

This works flawlessly in the browser like I said above. I choose the file and store to chooseImage. I have the uploadProfilePicture calling file_create. That works fine too and the image gets uploaded and stored in _files no problem.

However, the same exact code not working in iphone tester. Have you guys tested the uploadMultipleFilesHelper function in the appery iphone tester? error is very vague. Bad request.

Tutorial is http://docs.appery.io/tutorials/uploa... and it does work totally fine in the browser....

Thanks

Girish Chhugani
Posts: 0
Joined: Thu Apr 17, 2014 10:18 pm

uploadMultipleFilesHelper not working

Also, is there anyway to get the file_name returned in either the create or the read when using file api? Trying to use it for profile pictures. Once the person uploads the file, would like to programmatically display the image on the profile page but can't figure out how to get the file name through a script. Thanks for all your help Katya!!

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

uploadMultipleFilesHelper not working

Girish,

We'll test it. Could you please share the app with a href="mailto:support@appery.io" rel="nofollow"support@appery.io/a?

Here is how to get file names:
http://stackoverflow.com/questions/13...

Girish Chhugani
Posts: 0
Joined: Thu Apr 17, 2014 10:18 pm

uploadMultipleFilesHelper not working

I will create a test app and send to you.
I need to file_name from _files collection in the database...

EJLD
Posts: 0
Joined: Sun Jun 08, 2014 11:03 pm

uploadMultipleFilesHelper not working

hello ! i'm struggling with uploading files and would like to know :
how come I created the 2 files upload services in 2 different DB and the response tabs are totally different ?

Image

Image

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

uploadMultipleFilesHelper not working

Hi Eric -

You just have to create 2 different services and map each of them with separate components at page in such way. The process of creation 1 upload page is fully described here: http://devcenter.appery.io/tutorials/...

EJLD
Posts: 0
Joined: Sun Jun 08, 2014 11:03 pm

uploadMultipleFilesHelper not working

Hi IIlya, thk you for your prompt reply.

Found the mistake. I must hv imported the response into the mapping. what you see above top image are the error items (code, description, ...). sorry for the inconvenience ...

main subject:
1/ i want to upload files to the _files table (so far, not good. the service works well on desktop browser but only time to time ... very unstable ... on mobile device. are confident with this one ? )
2/ then, I want to be able to query this file.

question:
how would you do to get the record "file name" as soon as it is created ?
or how can I get the name of the uploaded file ? from the data input control ? ... ?

hope I am clear enough :)

looking forward to getting your lights !

best,
Eric

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

uploadMultipleFilesHelper not working

Hello Eric,

You can add success event to your uploading service, and retrieve a file or a file list on success. You can read about it here http://devcenter.appery.io/documentat... and here http://devcenter.appery.io/documentat....

Return to “Issues”