> For the complete documentation index, see [llms.txt](https://docs.scaleflex.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.scaleflex.com/digital-asset-management-dam/settings/storage/upload.md).

# Upload

The upload setting can be managed under the *Settings / Library / Storage/ Upload menu.*

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

## Upload

### Duplicate check

<table><thead><tr><th width="213">Setting</th><th>Description</th></tr></thead><tbody><tr><td><code>Duplicated file</code></td><td>Set a rule for dealing with a duplicate asset: <br>• Accept<br> • Refuse</td></tr><tr><td><code>Same name</code></td><td>Set a rule for dealing with a duplicate asset name: <br>• Refuse <br>• Override<br> • New version.</td></tr></tbody></table>

### **File Name**

Set a rule for naming the assets once uploaded. Possible options are:

* Assign a random file name in UUID format
* Keep original file name with a random suffix
* Keep original file name

#### Enforce original file name format control at upload

Enforce strict naming conventions for incoming assets using a custom regular expression (Regex):&#x20;

* Hub upload: If a file name violates the Regex rule, the upload is blocked, an error message is displayed, you are prompted to rename the file directly within the uploader before proceeding.
* API upload: Enables server-side validation on headless API endpoints, rejecting non-compliant assets sent from external systems or custom integrations.
* Regex controlling the file name format (includes extension)

> Scope Limitation:
>
> * Dependency: This is automatically disabled if *Assign a random file name* is selected. It can only be activated when either of the other two *File name* options is selected.

### **Optimize images on upload**

When enabled, DAM will resize the images during the upload process to optimize storage and accelerate further actions such as image editing or variant creation.<br>

| Setting                                    | Description   |
| ------------------------------------------ | ------------- |
| `Operation`                                | Resize        |
| `Max width`                                | In Pixels     |
| `Max height`                               | In pixels     |
| `Allow users to optimize images on upload` | ON/OFF toggle |

### Resumable upload

If this toggle is enabled, the upload can be recovered if the netword conneciton is interrupted.  Please note that the current tab needs to stay open for this to be possible. Please also note that you cannot modify this setting while you have active uploads. Please close the progress panel/bar before trying again.


---

# 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://docs.scaleflex.com/digital-asset-management-dam/settings/storage/upload.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.
