> For the complete documentation index, see [llms.txt](https://shoppad.gitbook.io/uploadery/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://shoppad.gitbook.io/uploadery/customize-the-app/change-required-pop-up-error-message.md).

# Change required pop up error message

For Uploadery, you can edit the required pop up error message by inputting some code into your product template.

#### 1. Locate your theme’s product.liquid file

{% hint style="info" %}
Need Help Locating the **product.liquid** file?\
Search within the **Templates** folder. If your theme does not have a product.liquid file and if you see a product.json file, locate a file called **main-product. liquid** file in the **Sections** folder.&#x20;
{% endhint %}

#### 2. Copy the needed code below and paste it under everything in the theme's product.liquid file.

```html
<!--Uploadery app by ShopPad -->
<script>
// Change the error messages
window.Shoppad = window.Shoppad || {},     
window.Shoppad.apps = window.Shoppad.apps || {},     
window.Shoppad.apps.uploadery = window.Shoppad.apps.uploadery || {},     
window.Shoppad.apps.uploadery.strings = window.Shoppad.apps.uploadery.strings || {},   
// The strings
window.Shoppad.apps.uploadery.strings = {
  unacceptedFileType: "Sorry, this file format is not allowed",
  exceedsFileSize: "Sorry, this file size is too large",
  exceedsImageMaxWidth: "Sorry, this image width is too wide",
  exceedsImageMaxHeight: "Sorry, this image height is too tall",
  exceedsImageMinWidth: "Sorry, this image width is too small",
  exceedsImageMinHeight: "Sorry, this image height is too short",
  incorrectAspectRatio: "Sorry, this image is not in the correct aspect ratio, it must be: {{aspect_ratio}}",
  requiredFieldMessage: "Please upload your file(s) before adding to cart."
};
</script>
```

#### 3. Locate the default text of what you wish to modify and modify it accordingly.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://shoppad.gitbook.io/uploadery/customize-the-app/change-required-pop-up-error-message.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
