> 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

Choose whether customers must upload before adding to the cart.

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

<figure><img src="https://496467855-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FH4gNmkiCvjHuxfVFianA%2Fuploads%2FRqNxu0i1do3FyzLnyck7%2Frequired1.png?alt=media&amp;token=dfbe6865-3c79-4f18-acd5-6332b77f38d2" 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="https://496467855-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FH4gNmkiCvjHuxfVFianA%2Fuploads%2FnckAbZicjHPlHjlX40Xp%2Frequried2.png?alt=media&amp;token=2796694e-bea4-41f6-a82b-44bcdd7e2d00" 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>" %}
