Skip to main content

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​

NameDescriptionType
obj_file_versThe files.ObjFileVer[]
return_file_refsIf 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​

NameDescriptionType
upload_idsAn array of temporary file ids. Empty if returnFileRefs was requested.number[]
file_refsIf 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 */
}