AddObjectFile
Description
Perform add file for MFD.
Syntax
// shellListing points to instance of IShellListing
await shellListing.AddObjectFile(
selectedObject,
fileToBeAdded,
dataURL,
dataURLName,
);
Parameters
| Name | Optionality | Type | Description |
|---|---|---|---|
| selectedObject | Required | ISelectedFile | Selected object info. |
| fileToBeAdded | Required | null | FileList | Info of file to be added. See FileList from MDN |
| dataURL | Optional | null | string | Data 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>". |
| dataURLName | Optional | null | string | Name of the file with the extension represented by the data URL. |
Return type
| Type | Description |
|---|---|
| Promise < void > | Method does not return a value |