Skip to main content

AddObjectFile

Description

Perform add file for MFD.

Syntax

// shellListing points to instance of IShellListing
await shellListing.AddObjectFile(
selectedObject,
fileToBeAdded,
dataURL,
dataURLName,
);

Parameters

NameOptionalityTypeDescription
selectedObjectRequiredISelectedFileSelected object info.
fileToBeAddedRequirednull | FileListInfo of file to be added. See
FileList from MDN
dataURLOptionalnull | stringData URL of the file to be added.
Only base64-encoded data URLs are supported and MIME-type is not optional.
Syntax should be: "data:[<media-type>][;base64],<data>".
dataURLNameOptionalnull | stringName of the file with the extension represented by the data URL.

Return type

TypeDescription
Promise < void >Method does not return a value