> For the complete documentation index, see [llms.txt](https://docs.diaflow.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.diaflow.io/studio/nodes/outputs-apps/file-output.md).

# File output

Return files such as PDFs, spreadsheets, or reports for download.

File output lets your app return a file from an earlier node for users to download.

Use it when the final result should be a document, spreadsheet, PDF, or other file.

<figure><img src="https://3864624312-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRdo1pkMnofwxf3lpWftw%2Fuploads%2FqCTDAm3vf1iD1sU3LdWv%2FFile.png?alt=media&amp;token=f6018942-d07a-48cc-aaaa-cf554ea883f4" alt=""><figcaption></figcaption></figure>

### Before you start

Choose a field from an earlier node that returns a file.

<figure><img src="https://3864624312-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRdo1pkMnofwxf3lpWftw%2Fuploads%2FoNZLtrNif2yfvGsa8wvZ%2Frounded-image%20(4).png?alt=media&amp;token=49b86527-adb0-468a-ab6a-bf8fb40e0591" alt="" width="375"><figcaption></figcaption></figure>

### How to set it up

1. In the **Output** node, click **+ Add**.
2. Select a file field from the list of earlier nodes.
3. Click **Ok**.
4. Choose **File** as the output type.
5. Enter a clear **Title**.
6. Click **Ok** and test the flow.

<figure><img src="https://3864624312-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRdo1pkMnofwxf3lpWftw%2Fuploads%2FXmglpy7yHaBfNEQk4Iyy%2Frounded-image%20(5).png?alt=media&amp;token=ea221e75-a845-44d8-98d2-08a19f95d58f" alt="" width="375"><figcaption></figcaption></figure>

### Settings

| Setting     | What it does                                                                    |
| ----------- | ------------------------------------------------------------------------------- |
| Output type | Sets how the selected field is shown in the app. Choose **File** for file data. |
| Title       | The label shown above the file, such as `Monthly report` or `Exported file`.    |

### Good business uses

* Deliver a generated report.
* Return an exported spreadsheet.
* Share a finished document for download.

### Next steps

* Go back to [Outputs (Apps)](/studio/nodes/outputs-apps.md).
* Create downloadable files with [File creator](/studio/nodes/action-nodes/file-creator.md).
* Export spreadsheet results with [Spreadsheet Creator](/studio/nodes/action-nodes/spreadsheet-creator.md).
