> 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

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

<figure><img src="/files/2SnqTtkKUQ5r6IoBkZPD" 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 %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://help.wotnot.io/build/action-blocks/collect-file.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
