getUploads Last updated: 29. Apr 2026

API only function

Returns an array of uploaded files. Use this function to support uploading files through your custom Docly pure JS APIs.

See also: getUploadBase64 saveEmbeddedFile

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 docly.getUploadBase64 function to retreive each file's data
    // ...
}