Function API only Updated 17 Oct 2026
getUploads()
Returns the files uploaded with the current request (a multipart/form-data post). Use it to accept file uploads in your own API functions.
Parameters
This function takes no parameters.
Returns
An array of objects: FileName (the uploaded file's name), Name (the form field it was posted in), Length (bytes) and ContentType.
Example
Normal JavaScript, 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 retrieve each file's data
// ...
}