my.getSavedFileInfo retrieves information about a file that was previously saved using my.saveFile. The saved address is required to use this API.
my.chooseImage({
success: (res) => {
console.log(res.apFilePaths[0], 1212);
my.saveFile({
apFilePath: res.apFilePaths[0],
success: (result) => {
console.log(result, 1212);
my.getSavedFileInfo({
apFilePath: result.apFilePath,
success: (resu) => {
console.log(JSON.stringify(resu));
}
});
},
});
},
});
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 |
|---|---|---|
size | Number | File size. |
createTime | Number | Timestamp for the created time. |
my.saveFileapFilePath returned from my.saveFile as the input