UploadExistingFiles
Creates temporary copies of existing files accessible via upload ids.
Syntax
// Assumes shellUI has been initialized with IShellUI instance
const results = await shellUI.Vault.ObjectOperations.UploadExistingFiles({
obj_file_vers: [] /* Array of ObjFileVer */,
return_file_refs: false,
});
Message
| Name | Description | Type |
|---|---|---|
obj_file_vers | The files. | ObjFileVer[] |
return_file_refs | If true, the copies are returned in fileRefs instead of uploadIds: as file_refs of stateless uploads if the vault supports them, otherwise as the upload IDs in decimal. | boolean |
Return type
| Name | Description | Type |
|---|---|---|
upload_ids | An array of temporary file ids. Empty if returnFileRefs was requested. | number[] |
file_refs | If returnFileRefs was requested, the copies in the order of the requested files: file_refs of stateless uploads if the vault supports them, otherwise the upload IDs in decimal. | string[] |
Example
{
"upload_ids": [] /* Array of number */,
"file_refs": [] /* Array of string */
}