> ## Documentation Index
> Fetch the complete documentation index at: https://help.wotnot.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Collect File

> Displays a upload area to collect file(s) from the user. 

![Image](https://mintcdn.com/wotnot/kTutEiLugWzUeP70/images/image-423.png?fit=max\&auto=format\&n=kTutEiLugWzUeP70\&q=85\&s=f7402ae201aab5ca1a3bf3a73fb55d22)

> [!NOTE]
>
> Available in all channels except Voice.

Use the Collect file block when you need users to upload documents, images, or other files, such as prescriptions, ID proofs, resumes, or claim photos.

# Using the Collect file block

To collect a file from a user:

* Drag the **Collect file** block onto the canvas.
* Configure the allowed file types and upload limits.
* Select the variable where you want to store the uploaded file information.

![Image](https://mintcdn.com/wotnot/kTutEiLugWzUeP70/images/image-424.png?fit=max\&auto=format\&n=kTutEiLugWzUeP70\&q=85\&s=3bc1a06d80a2a485cd3cbde4e3e928ef)

**1. Set the file size limit**

Under **Restrict file size per file**, select the maximum file size allowed for each uploaded file.

**2. Set the number of uploads**

Under **Restrict number of uploads**, select how many files the visitor can upload.

**3. Save the response**

Under **Save response**, select the variable where the uploaded file response should be stored.

You can use this variable later in the bot flow or pass it to another action or integration.

# Configurations

### **Question text**

Enter the message shown to the user asking them to upload a file.

### **Allowed file types**

File extensions types that users can upload.

Supported file types are :

![Image](https://mintcdn.com/wotnot/kTutEiLugWzUeP70/images/image-425.png?fit=max\&auto=format\&n=kTutEiLugWzUeP70\&q=85\&s=4be79f0dab7a1e3ea75fbd440bce4db1)

### **File size limit**

Set the maximum file size from 1 MB to 10 MB that a visitor can upload from the drop down list.

![Image (6) 3](https://mintcdn.com/wotnot/kTutEiLugWzUeP70/images/image-\(6\)-3.png?fit=max\&auto=format\&n=kTutEiLugWzUeP70\&q=85\&s=807c986c1571c6c6989b31337f273941)

### **Number of files**

Set the maximum number of uploads from 1 to 10 allowed for the visitor.

You can choose the number of file limit from dropdown.

![Image (9) 2](https://mintcdn.com/wotnot/kTutEiLugWzUeP70/images/image-\(9\)-2.png?fit=max\&auto=format\&n=kTutEiLugWzUeP70\&q=85\&s=ea36ad056396680c799fe34afa2ee606)

### **Save to variable**

Select or create a variable where the user’s uploaded file will be stored.

This variable can be referenced later in your workflow.

> [!NOTE]
>
> The uploaded files are stored on WotNot’s cloud server, and a publicly hosted file URL will be stored in this variable.

![Image (10) 1](https://mintcdn.com/wotnot/kTutEiLugWzUeP70/images/image-\(10\)-1.png?fit=max\&auto=format\&n=kTutEiLugWzUeP70\&q=85\&s=6861ab09c0ad6ee074d628838b1845ce)

### **Validation message**

Sets the maximum file size allowed for uploads. If the uploaded file exceeds the configured limit, the system automatically displays the validation error message.

* **Example:** If the file size limit is set to **5 MB** and a user uploads a PDF larger than **5 MB**, the system automatically shows the configured error message.

![Image](https://mintcdn.com/wotnot/kTutEiLugWzUeP70/images/image-427.png?fit=max\&auto=format\&n=kTutEiLugWzUeP70\&q=85\&s=1b8e85083dccd782ba78f7626943d3e6)

## **Other configurations**

It is the additional option available for the block.

**Send message as info title:** Enabling this will compress the message description and show the title as defined. It appears as a tooltip that can be expanded to see the information.

![Image](https://mintcdn.com/wotnot/kTutEiLugWzUeP70/images/image-426.png?fit=max\&auto=format\&n=kTutEiLugWzUeP70\&q=85\&s=5d87f04dda4a35c0eb9ea0d8056a7a3c)

* Click on Advanced Settings>> select the checkbox , Enter Title and Description.

![Recording 2026 08 21 001735 1](https://mintcdn.com/wotnot/kTutEiLugWzUeP70/images/Recording-2026-08-21-001735-1.gif?s=b0814f99aad8cb67d97f02ba8f4c06bb)

## Output paths

Use the output paths to define what happens after the user attempts to upload a file.

* **Upload successful** — Continue the conversation when the file is uploaded successfully.
* **Upload failed or skipped** — Handle cases where the upload fails or the user does not provide a file.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.