> For the complete documentation index, see [llms.txt](https://help.wotnot.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.wotnot.io/build/action-blocks/collect-file.md).

# Collect file

Collects a file(s) from the user during a chat.

Collect file action block is best used when you want to collect any file or image from your visitors.&#x20;

<figure><img src="https://360969599-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsrMxU8nO3RjusUiYuXBB%2Fuploads%2FlIJ2TylNhScq29sbyU0i%2FCleanShot%202026-07-07%20at%2016.28.55.png?alt=media&amp;token=dc5884af-e876-409d-9acb-dcbf8c1e5bfb" alt=""><figcaption></figcaption></figure>

### Configuration

* **Question**: Ask a question that will prompt your visitors to upload a file or image. For example: “Can you upload the invoice?”&#x20;
* **Format**: Select the type of files that you would like to allow visitors to upload.
  * .pdf
  * .jpg
  * .png
  * .heic
  * .doc
  * .docx
  * .ppt
  * .xls
  * .xslx
  * .csv
* **Restrict file size**: Set the maximum file size from 1 MB to 10 MB that a visitor can upload from the drop down list.
* **Restrict number of files**: Set the maximum number of uploads from 1 to 10 allowed for the visitor.
* **Save response**: Select or create a [variable](/build/interface/variables.md) where the user’s uploaded file will be stored. This variable can be referenced later in your workflow.

{% hint style="info" %}
**Note**: The uploaded file is stored on WotNot’s cloud server, and a publicly hosted file URL will be stored in this variable.
{% endhint %}
