my.getSavedFileInfo
Version requirements: Basic library 1.3.0 or higher version.
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:
Attributes | Type | Mandatory | Description |
apFilePath | String | Yes | File path |
success | Function | No | Callback function for call success |
fail | Function | No | Callback function for call failure |
complete | Function | No | Callback function for call completion (to be executed for both call success and failure) |
Success Callback Function
The incoming parameter is of the Object type with the following attributes:
Name | Type | Description |
size | Number | File size |
createTime | Number | Timestamp for the created time |