Skip to content

FileSystemManager.saveFile ​

JS
    FileSystemManager.saveFile(Object object)

Save a temporary file locally

This interface moves the temporary file, so after a successful call tempFilePath becomes unavailable

Parameters

  • Object object: Input parameters; see the table below for details

Properties of object:

PropertyTypeRequiredDescription
tempFilePathstringYesTemporary storage file path
filePathstringNoPath where the file will be stored.
successfunctionNoCallback function when the call succeeds
failfunctionNoCallback function when the call fails
completefunctionNoCallback function when the call completes

Parameters of the success callback function

  • Object res: Returns information about the stored file

Properties of res:

PropertyTypeDescription
savedFilePathstringPath of the stored file