> For the complete documentation index, see [llms.txt](https://docs.win32.run/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.win32.run/developers/3rd-party-apps/save-file.md).

# Save File

Save a file without invoking File Saving Dialog.

Similar to `win32.get_file` method, you have to have a win32 file id first, which could obtain when you first save the file using or `win32.pick_files` or `win32.save_file_as`

```javascript
await win32.save_file(file, id)
```

### Params

#### file

`File`

Content of the file you want to save to win32. A File object. See [Mozilla Docs](https://developer.mozilla.org/en-US/docs/Web/API/File)

#### id

`String`

id of the file. Refer to [Pick Files](/developers/3rd-party-apps/pick-files.md#returns)

### Return

`Promise<Void>`
