> For the complete documentation index, see [llms.txt](https://minimateapps.gitbook.io/mini-image-upload-and-file-upload/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://minimateapps.gitbook.io/mini-image-upload-and-file-upload/how-to.../how-to-make-uploads-optional-or-required.md).

# How to make uploads optional or required

* Please go to "Upload Rules" tab while creating a field
* Click "Add a rule" button
* Select "Required Upload" option

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

* To make the upload **required**, click "Required". Customers will need to upload a file before they can add the product to cart.
* To make the upload **optional**, click "Optional". Customers can add the product to cart with or without uploading a file.
* You can also customize the **"Required field message"** that shows up when a customer tries to add to cart without uploading. The default is "This field is required".

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

{% hint style="info" %}
You can set this rule alongside other rules like "File count limit" or "Allowed file types" to fully control the upload experience.
{% endhint %}

#### 📹 Watch: Making Uploads Required

See how to make an upload mandatory — customers won't be able to add the product to cart without submitting a file.

{% embed url="<https://youtu.be/n7n2T2kc4CY?si=r5UlIBqpZUnLMhCY&t=414>" %}
