Page 1 of 1

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

Posted: Sun Sep 15, 2019 5:10 pm
by RP

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){ 

 });

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

Posted: Mon Sep 16, 2019 5:34 pm
by Serhii Kulibaba

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