> 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

Upload management rules, default visibility & download

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

<figure><img src="https://2536208400-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fqsq2dR7Fjagf5eTifWZx%2Fuploads%2FU99nmdyp4uSVGDeIVnue%2Fupload.png?alt=media&amp;token=866bb741-108c-402c-9ceb-6caf43d3e4f1" 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.
