my.getSavedFileInfo
Get saved file information.
Sample Code
The my.saveFile saved address is required to use my.getSavedFileInfo
copy
var that = this;
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))
that.filePath = resu
}
})
},
});
},
});
Parameters
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). |
Success Callback Function
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. |