> For the complete documentation index, see [llms.txt](https://docs.browserflow.app/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.browserflow.app/reference/browserflow-commands/extract-data/save-file.md).

# Save File

Saves a file from an element or URL

#### Content type

* Element
  * Saves the source of an element (`<img>`, `<video>`, or `<audio>`)
* URL
  * Saves the media at the URL

#### Content

* If content type is Element
  * [Selector](/guides/selectors.md) for the element whose source to save
* If content type is URL
  * URL of the media to save

#### File name

* Name to save the file as

#### File destination

* Where to save the file

#### Store downloaded file path/URL in variable

* Name of the variable to store the path/URL of the downloaded file
* Storing the local file path is only needed if the downloaded file will later be uploaded in the flow since [Upload File](/reference/browserflow-commands/interact-with-page/upload-file.md) requires an absolute path
