my.saveFile saves a file in a local position. The total capacity of local file size is limited to 10 MB.
my.chooseImage({
success: (res) => {
my.saveFile({
apFilePath: res.apFilePaths[0],
success: (res) => {
console.log(JSON.stringify(res));
},
});
},
});
Object type with the following attributes:
| Property | Type | Required | Description |
|---|---|---|---|
apFilePath | String | Yes | File path. |
success | Function | No | Callback function upon call success. |
fail | Function | No | Callback function upon call failure. |
complete | Function | No | Callback function upon call completion (to be executed upon either call success or failure). |
The incoming parameter is of the Object type with the following attributes:
| Property | Type | Description |
|---|---|---|
apFilePath | String | File save path. |
my.chooseImage)