GetUploadBase64(filename) Last updated: 26. Oct 2023

API only function

Returns a file by name from the uploaded form as an base64 encoded string.

Parameters

Name Type Description
filename string Name of file to return data as a base64 encoded string.

Returns

Data from uploaded file as base64 encoded string.

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)
{
    let data = docly.getUploadBase64(upload.Name);
    // Do something with the data, maybe save it as an embedded attachment?
}