# File Upload

This action block is used when you would like your visitors to submit documents or files through bot.

**In what formats does the file can be uploaded?**&#x20;

* .pdf
* .jpg
* .png
* .doc
* .docx
* .ppt
* .xsl
* .xlsx
* .csv

Maximum size of the file supported is 10 MB Maximum number of uploads allowed is up to 10&#x20;

**How do I set it up?**&#x20;

Setting up 'File Upload' action block

You can follow the following steps to set up the 'File Upload' action block;&#x20;

* Add an action block on canvas by clicking on '**+**'&#x20;
* Choose '**File Upload**'&#x20;
* Double click on '**File Upload**' to configure it on the right panel&#x20;
  * **Message:** Define the message or question that will appear to your visitors before collecting the file.&#x20;
  * **Type of File:** Select the type of file that you want to limit the visitors to upload. This will restrict the bot from accepting the files of the format which are not selected by you.&#x20;
  * **Define Variable:** Configure the variable where you would like the file to be uploaded or stored. This will allow you to share the link of the file uploaded by the visitor later in the flow.&#x20;
  * **File Size:** Set the limit of the file size that the visitor can upload. The maximum size supported is 10 MB. Other sizes that you can choose are 1, 2 & 5 MB. In-order to change the maximum size of the file, you will need to click on 'Drop down arrow' & select from the available options.&#x20;
  * **Upload Limit:** Set the upload limit i.e the number of times visitor can upload a file. Maximum number of uploads allowed per visitor is 10. The other available options are 1, 2 & 5. In-order to change the upload limit, you will need to click on 'Drop down arrow' & select from the available options.&#x20;


---

# 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://help.talkie.se/action-blocks/file-upload.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.
