Page 2 of 2

uploadMultipleFilesHelper not working

Posted: Tue Feb 17, 2015 12:52 pm
by EJLD

Hi Evgene, thks for your prompt reply but it was not my question.
yes, I know how to retrieve a file.
my issue is :
1/ select any file on the device without knowing its name,
2/ upload that file to the _files table,
3/ retrieve this file.

how/where to get its name or its _id and store it for later ?

I can always generate a key when uploading the file and store that key in the same record, as well as somewhere else to run queries later but still expect a simpler way. any thought ?

thks in advance,
Eric


uploadMultipleFilesHelper not working

Posted: Wed Feb 18, 2015 5:19 am
by Yurii Orishchuk

Hi EJLD,

Uploaded files you can get from "Upload" service.

Please open this service on "response" tab and set response parameters like on screen shot:

http://prntscr.com/66kiwt/direct

From this time you can link this response where you need.

Regards.


uploadMultipleFilesHelper not working

Posted: Wed Feb 18, 2015 7:11 am
by EJLD

Hi Yurii, thks for you msg. in fact, I tried that before way but it doesn't work. it blocks all responses including invoke and .js code.

but I found something interesting, I can retrieve the file name at the data input control level - appery("input name").val(); shall release the name.

hopefully it works under all browsers :)
at least mozilla does
best


uploadMultipleFilesHelper not working

Posted: Sat Feb 21, 2015 3:04 pm
by EJLD

Hi Yurii, I looked at your link again and noticed the tricky structure with array and objects, ... finally could make it work. thk you very much for your advice !
Enjoy Sunday !
Eric


uploadMultipleFilesHelper not working

Posted: Sat Feb 21, 2015 3:11 pm
by Evgene Karachevtsev

Hello Eric,

Thank you for the update, have a good weekend too.


uploadMultipleFilesHelper not working

Posted: Sat Feb 21, 2015 3:14 pm
by EJLD

me again ! good to have the filename but how to personalize the query service's URL ]https://api.appery.io/rest/1/db/files... ? thks in advance