> ## Documentation Index
> Fetch the complete documentation index at: https://docs.rebellapp.com/llms.txt
> Use this file to discover all available pages before exploring further.

# 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.

## Parameters

| 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 |

## Success Callback

| Property   | Type   | Description     |
| ---------- | ------ | --------------- |
| apFilePath | String | Saved file path |

## Code Example

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