`contentType`: File upload is uploaded in `multipart/form-data;` type by default
`accept`: Restrict the file types selected by the user's file selection box, default `*` all
`limitSize`: Limit the file size selected by the user. If the file size exceeds the limit, no upload will be requested. Default: `1024 * 1024 * 5` 5M
`multiple`: `false` can only upload one file at a time, `true` defaults to a maximum of 100 files at a time. You can specify the specific number, but the file selection box cannot be limited, only the first number of uploads can be limited when uploading
`data`: POST these data together to the server when the file is uploaded
`name`: When file upload request, the name of the request parameter in `FormData`, the default is `file`
Preview address: response.preview || response.data && response.data.preview After the back-end conversion, you can preview some complex files, and return the address if available
Download address: response.download || response.data && response.data.download The download address of the file, you can add permissions, time restrictions, etc., if you have one, you can return the address
`result`: true upload is successful, data is the file address. false upload failed, data is an error message
```ts
/**
* Parse the uploaded Respone and return result: whether it is successful or not, data: success: file address, failure: error message
Parameter 2: When the status is not `error`, the file is displayed, otherwise an error message is displayed
```ts
//'uploading' |'done' |'error'
engine.command.execute(
File.pluginName,
'done',
'File address',
'File name', //optional
'File size', //optional
'Preview address', //optional
'Download address', //optional
);
```
### `FileUploader` plugin command
Pop up the file selection box and perform upload
Optional parameter 1: Pass in the file list, these files will be uploaded. Otherwise, the file selection box will pop up and upload it after selecting the file