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.
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.
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...
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
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!!
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...
I will create a test app and send to you.
I need to file_name from _files collection in the database...
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/...
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
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....