Skip to main content
Save a temporary file permanently to the local file system.

Parameters

PropertyTypeRequiredDescription
apFilePathStringYesTemporary file path
successFunctionNoCallback with saved path
failFunctionNoCallback on failure
completeFunctionNoCallback that always executes

Success Callback

PropertyTypeDescription
apFilePathStringSaved file path

Code Example

my.saveFile({
  apFilePath: tempFilePath,
  success: (res) => {
    console.log('Saved to:', res.apFilePath);
  }
});