File
my.saveFile
Save a temporary file to local storage.
Save a temporary file permanently to the local file system. The total capacity of locally saved files is limited to 10 MB.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Save a temporary file to local storage.
| Property | Type | Required | Description |
|---|---|---|---|
| apFilePath | String | Yes | Temporary file path |
| success | Function | No | Callback with saved path |
| fail | Function | No | Callback on failure |
| complete | Function | No | Callback that always executes |
| Property | Type | Description |
|---|---|---|
| apFilePath | String | Saved file path |
my.saveFile({
apFilePath: tempFilePath,
success: (res) => {
console.log('Saved to:', res.apFilePath);
}
});