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:

AttributesTypeMandatoryDescription
apFilePathStringYesFile path
successFunctionNoCallback function for call success
failFunctionNoCallback function for call failure
completeFunctionNoCallback 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:

NameTypeDescription
sizeNumberFile size
createTimeNumberTimestamp for the created time