GetUploads Last updated: 30. Oct 2023
API only function
Returns a an array of uploaded files. Use this function to support uploading files through your custom Docly pure JS API's.
Parameters
This function takes no parameters
Returns
Data an array of objects with the following properties: FileName, Name, Length, ContentType
Example
Code example (JS)
JS is normal JavaScript either running in the browser or on the Docly™ server.let uploads = docly.getUploads();
for(let upload of uploads)
{
write(upload.FileName);
write(upload.ContentType);
write(upload.Name);
write(upload.Length + " bytes");
// ...
// See also the GetUploadBase64 function to retreive each file's data
// ...
}