# Download File

Return a file to the user and decide whether to open it immediately or download it to the user's PC.

***

{% embed url="<https://www.youtube.com/embed/sv0HZffvGqk?autoplay=1&rel=0&vq=1080>" %}
*Add a Download File action*
{% endembed %}

***

### Properties

1. **File Content**

   Content of the file to be downloaded.
2. **File Name**

   The name that will be given to the file downloaded to the client.
3. **File Options**

   What should Stadium do with the file: 'Open', 'Open in a new Window' or 'Download'?


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.stadium.software/actions/download-file.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
