English
uploadBigFile
About 86 wordsLess than 1 minute
2025-12-16
This method uploads a large file.
Syntax: FxUI.mediaApi.uploadBigFile(formData)
Parameters
| Parameter | Description | Type | Allowed Values | Default |
|---|---|---|---|---|
| formData | FormData for file upload (required) | Object | — | — |
Example
This method returns a Promise, as shown below:
let file = new File(['test'], '/Users/XXX/Desktop/work/npaas/src/api/src/xxx.doc');
const formData = new FormData();
formData.append('name', 'sample.doc');
formData.append('file', file);
FxUI.mediaApi.uploadBigFile(formData).then((res) => {
console.log(res);
// todo what you want
}).catch(err => {
console.log(err);
})Return Value
The structure of res is as follows:
{
filePath: "ALIOSS_58bb8756543b43be90f71c30a439f6fa" // generated file path
}