# File Upload

## **Element Description**

The **File Upload** field allows users to upload files during the checkout process. It supports multiple file formats and can be configured to limit the number and size of files uploaded. This is useful for collecting documents, images, or other relevant files from customers.&#x20;

<figure><img src="/files/5CBN3dFrd1z9FWAcvsof" alt=""><figcaption></figcaption></figure>

**Sample Use Cases**

* Collect ID verification documents from customers.
* Request product images or documents for custom orders.
* Gather digital files needed for service fulfillment.

<figure><img src="/files/c1yDN4zwh80jlp28SEUi" alt=""><figcaption><p>Sample File Uploads</p></figcaption></figure>

## **File Upload** Field Settings

<figure><img src="/files/HNiLT1y3VTjAl51dd7jA" alt=""><figcaption></figcaption></figure>

* **Label** – The name of the field displayed to the customer on the checkout page.
* **Description** – Additional information or instructions about the field, displayed below the file upload button.
* **Enable/Disable Field** – Allows you to enable or disable the field based on your needs. If it is disabled, the element will not be displayed in the checkout form, you can enable it anytime from the checkout builder according to your needs.
* **Is Required** – When enabled, customers must upload a file before completing the checkout process.
* **Selected Files Limit** – The maximum number of files customers can upload (e.g., 2 files).
* **Allowed File Types** – Specify the allowed file formats by entering a comma-separated list (e.g., png, jpg, jpeg).
* **Max File Size in MB** – Set the maximum file size for each upload, in megabytes.

**Advanced Settings**

* **Custom Class Name** – Add [**custom CSS classes**](/checkout-custom-fields-builder-for-woocommerce/plugin-features/custom-classes.md) for additional styling or customization of the file upload field.


---

# 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://docs.stylemixthemes.com/checkout-custom-fields-builder-for-woocommerce/checkout-builder-elements/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.
