RP
Posts: 0
Joined: Thu Aug 22, 2019 9:17 pm

What does the Appery.io Upload plug-in return as response after a successful file upload?

Hello,

I've successfully implemented the Appery.io upload to db example using the plug-in and the tutorial. In the invocation of the FileDB__files_upload_service I like to know what is returned and how to access it currently the example provided just does the following listed below. But I like to get the Appery.io assigned filename after a successful upload. How do I do that? How do I know the db stored filename of the file I just uploaded? I assume the service returns something but I couldn't find in the document what it returns nor how to access the returned values.

Apperyio.get("FileDB__files_upload_service")(requestData).then(

Code: Select all

 function(success){ 
     alert('All files has been successfully uploaded.'); 

 }, 
 function(error){ 

 }, 
 function(notify){ 

 });
Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

What does the Appery.io Upload plug-in return as response after a successful file upload?

Hello,

It returns a list of objects with uploaded filenames and links to them.
You can see the full response if you put prealert(JSON.stringify(success));/preright after the existing alert

Return to “Issues”