ReplaceFile
Description
Perform file replace.
Syntax
// shellListing points to instance of IShellListing
await shellListing.ReplaceFile(
selectedFileID,
selectedObject,
fileToBeReplaced,
dataURL,
dataURLName,
);
Parameters
| Name | Optionality | Type | Description |
|---|---|---|---|
| selectedFileID | Required | number | Selected file's ID. |
| selectedObject | Required | ISelectedFile | Selected object info. |
| fileToBeReplaced | Required | null | FileList | Info of file to be replaced. See https://developer.mozilla.org/en-US/docs/Web/API/FileList |
| dataURL | Optional | null | string | Data URL of the file to be replaced. 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 |