# DownloadOptions

**Kind**: interface | **Module**: [Windows](https://docs.interop.io/desktop/reference/javascript/windows/index.md)

**Source**: https://docs.interop.io/desktop/reference/javascript/windows/downloadoptions/index.html

Options for downloading a file.

## Properties

- **`autoOpenDownload`** (`boolean`, optional) default: `false`
  If `true`, will open the download file after the download is completed.
- **`autoOpenPath`** (`boolean`, optional) default: `false`
  If `true`, will open the folder that contains the downloaded file after the download is completed.
- **`autoSave`** (`boolean`, optional) default: `true`
  If `true`, will auto save the file (without asking the user where to save it). If `false`, a Save File dialog of the OS will appear.
- **`name`** (`string`, optional)
  If specified, will be used as a name for the downloaded file.
- **`path`** (`string`, optional) *(since io.Connect Desktop 10.3, @interopio/desktop 6.21.0)*
  Path where the file will be downloaded. If `autoSave` is set to `false`, this option will be ignored
  and the user will be asked to choose the download location via the Save File dialog of the OS.
- **`silent`** (`boolean`, optional) default: `false`
  If `true`, won't show the download bar on the page.
