UploadTemporaryFiles
Description
Uploads temporary files to the server and returns a file source which other operations can use to access the uploaded files.
The uploaded files are temporary and will be automatically removed from the server after a certain period of time. The caller should use the returned file source to perform further operations with the uploaded files before they expire.
The method also handles duplicate detection and searchable PDF conversion if the features are enabled. A user must interact with the dialogs and may cancel the upload process during these steps, causing an error to be thrown.
Syntax
// ICommonFunctions is binded into the MFiles global object
const result = await MFiles.UploadTemporaryFiles(files);
Parameters
| Name | Optionality | Type | Description |
|---|---|---|---|
| files | Required | FileList | The files to upload. |
Return type
| Type | Description |
|---|---|
Promise < IObjFileSource > | Source information of the uploaded temporary files. |