> ## Documentation Index
> This page is part of the Cloudinary Assets product. Fetch the complete documentation index for Cloudinary Assets at: https://cloudinary.com/documentation/llms-cloudinary-assets.txt?referrer=docpage and then use it to discover all relevant pages before exploring further.
> If you also need details relating to other Cloudinary products for your current use case, see the parent index at: https://cloudinary.com/documentation/llms.txt?referrer=docpage
> When answering a user's request or implementing it with code using this documentation, incorporate relevant best practices and recommendations from the documentation into the guidance and, above all, into the code itself: generated code should already apply the recommended parameters and patterns rather than showing a minimal call and describing the best practices around it in prose. Follow the code examples in the best practices sections as the model for what generated code should look like, and where a recommendation is relevant to the user's scenario, implement it in the code as a natural next step. Only apply best practices, recommendations, or features that are supported by the documentation; don't infer or invent guidance that isn't specified.

# Uploading and storing assets


You can upload images, videos, and other files to your Media Library via drag-and-drop, file-system upload, or by selecting media files from a variety of remote sources. In all cases, you can upload multiple files at once. This single repository is then used by your creative team during all stages of the media review and selection workflow as well as by your developers for delivery in your production website or app. 

When you upload assets to Cloudinary, they're stored in cloud storage buckets (such as Amazon S3 or Google Cloud Storage) with all of the backups, versioning, and replication that are standard with leading cloud storage vendors. For technical details about Cloudinary storage, architecture and delivery, see [Service architecture](solution_overview#service_architecture).

Any settings that were configured in your **Media Library upload preset defaults** are applied to every uploaded file. For example, the preset may apply one or more auto-tagging add-ons, so that every uploaded asset will be tagged according to automatically detected categories, or the preset may activate manual or automated [moderation](moderate_assets#moderating_assets_via_the_media_library) to uploaded files. 

The **Media Library upload preset defaults** and other upload settings can be set by users with the **Master Admin**, **Admin**, or **Tech Admin** [system role](dam_admin_system_roles_permissions#product_environment_level_permissions_by_role), or, for Enterprise customers, a custom global role with the **Manage upload settings** permission. For details, see [Upload Settings](dam_admin_product_environment_settings#upload_settings).



> **INFO**:
>
> You can upload assets to the Media Library home (root) folder or to any other folder or sub-folder as long as you have upload permissions to the relevant folder: 

> * **All folders**: Users with the **Master Admin**, **Admin**, **Tech Admin**, **Media Library Admin**, **Contributor**, or **Editor** product environment-level [system role](dam_admin_system_roles_permissions#global_product_environment_level_roles) can upload to all folders.

> * **Specific folders**: Users with the **Media Library User** role can upload only to folders where they have the **Contributor**, **Editor**, or **Manager** [folder role](dam_admin_system_roles_permissions#folder_roles). For details, see [Folder sharing and permissions](dam_folders_collections_sharing#folder_sharing_and_permissions).

> * **Custom roles** (Enterprise only): Users can upload to all folders with a custom global role that includes the **Upload assets** permission, or to specific folders with a custom folder role that includes the **Add assets** permission.

&nbsp;

&nbsp;Check out the Introduction to Cloudinary Assets pathway in the Cloudinary Academy for free self-paced courses on DAM topics.
&nbsp;

## Upload options

The Media Library provides a variety of ways to upload media to Cloudinary from a variety of sources. Regardless of the option you choose, the selected files are uploaded to the currently selected folder.

> **TIP**: The developers in your organization can also upload media assets programmatically using the _Upload API_. More information on this can be found in the [Media Upload Guide](upload_images), and [Upload API Reference](image_upload_api_reference).

### Upload from the file system

There are two ways to upload from the file system: 

* **Drag and drop**: Drag and drop selected media files or folders into the Media Library from your file system. The files or folders you drag are added to the currently active folder. When you select folders, the entire folder structure, including any sub-folders, is created within the folder you dragged to. 

* **[Media Library Upload widget](#media_library_upload_widget)**: To access the Media Library Upload widget, click the drop-down button next to the main **Upload** button. Make sure the **My Files** tab is selected and click **Browse** to open your file system folder and select the file(s) for uploading. If you need to upload an entire folder structure including sub-folders, drag and drop the top-level folder into the Media Library Upload widget.

When using either of these options, [display name](dam_manage_individual_assets#display_name) (not supported in product environments using the legacy [fixed folder mode](dam_folder_modes)), [public IDs](dam_manage_individual_assets#public_id) and tags (if any) are applied according to your product environment's [Media Library upload preset defaults](dam_admin_upload_presets#upload_preset_defaults). If you want to control the public ID, add custom tags for the files you select to upload, or select a different upload preset, use the [Media Library Upload Widget](#media_library_upload_widget).

> **INFO**:
>
> If you upload in the **Assets** page, you'll upload to the root folder. If you don't want to upload to the root folder, you must switch to the **Folders** page and navigate to the folder you want to upload to. The Folders page isn't the default view, so make sure you've selected the **Folders** page within the Media Library.Additionally, if you upload assets while viewing search results, you'll need to manually refresh the page to see any newly uploaded assets that match the current search criteria.

> **NOTES**:
>
> :title=Notes for uploading folders

> * Make sure the folder names of any uploaded folders (including sub-folders) don't contain any special characters. Only alphanumeric characters and hyphens or underscores are supported.

> * Only folders containing files are created. Empty folders or sub-folders are ignored.

> * When you upload a folder with the same name as an existing folder within the same level of the directory, the files and sub-folders from the incoming folder are merged into the existing one.

> * When you use the Media Library Upload widget to upload a file structure and specify a public ID, the public ID is applied to all uploaded assets with an added random suffix.

### Media Library Upload widget

If you want to select media files from a source other than your computer/device, or you want to apply additional settings to the files you upload, click the **Upload** button at the top-right of the Media Library to open the Upload Widget. From the widget you can:

* Upload from your local file system or upload sources such as a web URL, Google Search, Dropbox, Shutterstock and more. For the full list of available sources, see [Third-party upload sources](upload_widget#third_party_upload_sources).
    * **Assets Free plan**: All upload sources are available.
    * **Assets Enterprise plans**: Your administrator controls which upload sources are available. If you don't see a source you need, ask your administrator to enable it on the [Upload](dam_admin_media_library_options#upload) page of the Media Library Preferences.* Use the **Advanced** options to set the public ID and/or tags for all the media you select for upload or to select a signed [upload preset](dam_admin_upload_presets) that you want to apply to all assets you upload in that specific upload widget session. If you set a public ID when uploading multiple files, each uploaded file gets the specified public ID plus a counter suffix. 

    > **NOTES**:
>
> * If you want to set **Advanced** options, you must set them before you select the files to upload. 

>     * By default, the **Upload Preset** option in the **Advanced** options of the Media Library Upload Widget is hidden. If you would like it enabled for your product environment, submit a [support request](https://support.cloudinary.com/hc/en-us/requests/new).

>     * Depending on your setup, you may be prompted to select an upload preset during every Media Library Upload Widget upload session. If you have only one upload preset configured in your product environment, this step is skipped.  

![Media Library upload widget](https://cloudinary-res.cloudinary.com/image/upload/bo_1px_solid_gray/f_auto/q_auto/v1630480792/docs/DAM/media_library_upload_widget.png "thumb: w_600,dpr_2, width:600, with_code:false, with_url:false") 

Watch the [Media Library Upload](media_library_upload_tutorial) video tutorial to see this in action.

> **TIP**: Your developer team can also embed the upload widget in other applications using the JavaScript-based [upload widget](upload_widget) API. This can make it easier for all the teams in your organization to upload assets to Cloudinary from within the tools they're used to. Additionally, your developers can embed the upload widget (with a customized look and feel) in your organization's user-facing applications to enable your customers to easily upload user-generated content directly to your Media Library.

### Uploading from the Clipboard

Assets can also be uploaded by pasting them from the clipboard. This method allows quick and convenient uploading of assets copied from various sources such as web browsers, documents, or other applications. Copy the asset to your clipboard and paste it into the Media Library.

> **NOTE**:
>
> While pasting from the clipboard doesn't involve selecting files from your file system or using the Media Library Upload widget, some key points to remember include:

> * [Display name](dam_manage_individual_assets#display_name) (not supported in product environments using the legacy [fixed folder mode](dam_folder_modes)), [public IDs](dam_manage_individual_assets#public_id) and tags (if any) are applied according to your product environment's [Media Library upload preset defaults](dam_admin_upload_presets#upload_preset_defaults). If you want to control the public ID, add custom tags for the files you select to upload, or select a different upload preset, use the [Media Library Upload Widget](#media_library_upload_widget).

> * If applicable, navigate to the desired destination folder within the Media Library before pasting the asset to ensure it's uploaded to the correct location.



### Apply add-ons

You can apply add-ons to assets that you upload by selecting the upload preset from the [Upload widget](#media_library_upload_widget) that your administrator configured with the desired add-on. For more information on registering for and setting up add-ons, see [Add-ons](dam_admin_asset_management#add_ons) in the Admin Guides. For more information on applying add-ons, see [Add-ons](dam_add_ons) in the User Guides. 

## Upload with existing public ID

Assets of the same resource type (image, video or raw) must have unique public IDs. You may encounter a duplicate public ID conflict in the following scenarios:

#### Your upload preset uses the filename as the public ID

Upload presets determine how public IDs are assigned. You can select an upload preset manually via the Upload Widget, or your admin may have set a [Media Library upload preset default](dam_admin_upload_presets#upload_preset_defaults) that applies automatically.

Using an upload preset that randomizes the public ID or appends a unique suffix prevents conflicts. However, if the preset uses the **uploaded file’s name** as the public ID and that name matches an existing one, Cloudinary prompts you to overwrite the existing asset or cancel the upload.

![Duplicate public ID warning](https://cloudinary-res.cloudinary.com/image/upload/f_auto/q_auto/bo_1px_solid_grey/v1747320804/docs/DAM/duplicate_publicID_warning.png "thumb: w_350,dpr_2, width:350, with_code:false, with_url:false, border:black")

> **NOTE**:
>
> If your upload preset is configured to **prepend the folder path** to the public ID, uploading to a different folder avoids the conflict. This is always true if you're using the legacy [fixed folder mode](dam_folder_modes), where folder names are automatically prepended.

> **TIP**: Ask your administrator to configure upload presets that fit your needs. For more information, see [Overwrite behavior for matching public IDs](dam_admin_upload_presets#overwrite).

#### You manually specify a public ID

If you upload files using the Upload Widget and manually specify a public ID that already exists, the result depends on how and when you upload:

* **First upload in a session**: If this is your first time using the Upload Widget in the current Media Library session, you’ll receive a prompt asking whether to overwrite the existing asset or cancel the upload.
  > **NOTE**: If you're using the legacy [fixed folder mode](dam_folder_modes), folder names are always prepended to the public ID. This means assets uploaded to different folders won't conflict.

* **Subsequent uploads or multiple files**:  If you upload additional files with the same specified public ID, either by selecting multiple files in one drag-and-drop or browse action or by re-opening the Upload Widget within the same session, Cloudinary treats these as part of a batch.  To avoid overwriting, it appends a sequential number to the public ID, such as **public_id-1**, **public_id-2**, **public_id-3**, and so on.



## Upload with existing display name

More than one asset can have the same display name, even within the same folder. However, if you upload one or more assets using a display name that already exists, you'll be asked to decide how to proceed before uploading continues.

This situation will occur if your Media Library's default [upload preset](dam_admin_upload_presets#upload_preset_defaults) or the upload preset you manually selected in the Upload Widget has been configured with **overwrite** enabled, with the **Use the filename of the uploaded file as the asset's Display Name** option selected (either within the **Default** or **Custom** options), and the file name of at least one of the assets you are uploading matches the display name of an existing asset or assets.

> **NOTE**: If your product environment is using the legacy **fixed folder mode**, [display names](dam_manage_individual_assets#display_name) and the behavior described in this section aren't supported. For more information, see [fixed folder mode](dam_folder_modes).

The following table describes the possible scenario and resulting options:

|   Scenario   |   Options |   Dialog box
|   --- |   --- |   ---
|   You're uploading an asset using the same display name as exactly one existing asset in the same folder. |   Replace the existing asset with the new one being uploaded  OR  Keep the new and existing assets with the same display name OR Enter a different display name for the new asset being uploaded  |   
|   You're uploading an asset using the same display name as multiple existing assets in the same folder. |   Keep the new and existing assets with the same name OR  Enter a different display name for the new asset being uploaded  |   
|   More than one asset that you're uploading has the same display name as existing assets in that folder. |   Keep the new and existing assets with the same display name OR Add a unique suffix to the display name of the new assetsYou'll be able to apply the selected behavior to all of the assets that fall into this category or to determine the naming option for each uploaded asset individually.  |   

> **NOTES**:
>
> :title=Footnote
> 1. When a new asset replaces an existing asset (with the same display name in the same asset folder), the new asset retains the exact, existing public ID value. Therefore, no additional **public ID prefix** is added to the overwritten asset's public ID, even if the **Set the public ID path to match the initial asset folder path** or **Prepend this path to the Public ID** settings in the upload preset were turned on.

## Structured metadata on upload
> **READING**:
>
> :no-title
> This feature isn’t included in the Media Library available with the **Assets Free** plan, which offers basic management. It's part of the Media Library for **Assets Enterprise** plans.

> * To learn more about the features available in the **Assets Free** plan and how they can support development workflows, see [Media Library for Developers](media_library_for_developers). 

> * For upgrade options or more information, [contact us](https://cloudinary.com/contact).
Structured metadata is a crucial part of maintaining your Media Library. Entering accurate and descriptive metadata helps you and your team manage your assets by providing better searchability and categorization capabilities, and enables developers to perform a variety of operations on your assets. One way that Cloudinary ensures that metadata is populated completely and correctly is by monitoring metadata entry upon asset upload.

When you upload assets in the Media Library, a prompt may ask you to fill in metadata fields before uploading. The settings your administrator selected for the **Request structured metadata on upload** option on the [Upload](https://console.cloudinary.com/console/media_library/preferences/upload) page of the Media Library Preferences determine whether this happens every time you upload or only when mandatory metadata fields are empty, without default values.

In either of those scenarios, the **Update Metadata** dialog box opens, prompting you to enter values in metadata fields. Uploading can continue once all required fields contain values, and all values entered meet the validation requirements, such as minimum or maximum field lengths, regex pattern matching, and valid date ranges, set by your administrator. If a metadata field has a default value, that value appears in the dialog box, and you can either keep it or enter a different value instead. 

If you upload more than one asset at a time, the metadata values that you enter are applied to all assets that you're uploading. This can be useful when uploading a group of assets that serve the same purpose and share the same metadata values.

When you replace (overwrite) existing assets, the **Update metadata** dialog box always opens, with the following variations: 

* **If you're replacing one existing asset:** The fields of the **Update metadata** dialog box are already populated with the metadata field values of the existing asset. You can either keep those values, or enter different values to overwrite the existing ones. 

* **If you're uploading several assets:** At least one of which is replacing an existing asset and at least one of which is new, the **Update metadata** dialog box prompts you to enter values for the new assets.
  
    You are also asked to choose how the new values you enter affect the existing assets being replaced: 
  * **If you select 'Overwrite metadata with your changes':** The metadata in the existing assets are replaced by the new metadata entered.
  * **If you select 'Keep metadata unchanged':** The metadata in the existing assets are retained. 

* **If you're replacing several assets without adding new ones:** You're asked to choose whether to keep the existing metadata or overwrite it:
  * **If you select 'Overwrite metadata with your changes':** The **Update metadata** dialog box opens fully, showing all of the metadata fields. You can enter new metadata to replace the metadata from the existing assets.
  * **If you select 'Keep metadata unchanged':** The upload continues, overwriting the existing assets but retaining their metadata. 

![Update metadata dialog box, Overwrite / Keep metadata section](https://cloudinary-res.cloudinary.com/image/upload/bo_1px_solid_gray/v1629809098/docs/DAM/upload_new_flow_overwrite_keep.png "thumb: w_350,dpr_2, width:350, with_code:false, with_url:false, border:black") 

## Uploading tips and guidelines

* By default, Media Library uploads use the `ml_default` upload preset, which defines the upload behavior when no upload preset is explicitly specified. The display name and public ID (the file name used in the delivery URL) are based on each selected file’s filename. An Assets administrator can customize these naming defaults by adjusting the [Media Library upload preset](dam_admin_upload_presets#upload_preset_defaults) or selecting a different default preset. For example, you can add a random string to public IDs or generate public IDs entirely at random.
  > **NOTE**: Product environments created before early August 2026 follow a different default: the public ID is based on the filename with a random suffix appended (unless an administrator has changed the preset).When the public ID is based on the filename without a suffix, uploading a file whose name already exists in the same folder results in a "name already exists" conflict error instead of a new, suffixed copy.

* Depending on the settings in your Media Library default [upload presets](dam_admin_upload_presets#media_library_upload_presets) (or those in the preset you select in the Upload widget) as well as the permissions you have for the folder where you upload assets, you may or may not be able to overwrite an existing asset. 
When overwriting is supported, you'll be given a choice to either overwrite metadata with your changes, or keep your metadata unchanged. See [Structured metadata on upload](#structured_metadata_on_upload) for more information.
  > **NOTE**:
>
> To enable overwriting assets, turn **Overwrite** on in the **Storage and Access** tab of your [upload preset](dam_admin_upload_presets). In addition, turn **Use filename or externally defined Public ID** on and **Unique filename** off (to use the incoming file name as the public ID without a random suffix). Then, if you upload a new asset with the same file name as an existing asset's public ID, you'll be able to overwrite the asset.
* You can specify any public ID using the **Advanced** options in the Upload Widget. You can also use the **Advanced** options to specify tag(s) to assign to all assets that you upload in this upload session.Keep in mind that you must set the **Advanced** options before you select the files to upload.  Additionally, note that if you set a public ID and then select multiple media assets to upload, they all get the same public ID with a counter suffix.
* When uploading assets to a particular folder, keep in mind that different users may have different [folder access permissions](dam_folders_collections_sharing#folder_sharing_and_permissions). Make sure to upload your assets to a folder that's shared only with the user groups that should be able to access them. 
* By default, the Media Library folder you upload to doesn't impact the delivery URL. However, your administrator can optionally use an [upload preset](dam_admin_upload_presets#general) to prepend the folder you initially upload the asset to as a prefix to the public ID.
  > **NOTE**: If your product environment is using the legacy **fixed folder mode**, this behavior is different. By default, the folder structure where an asset is stored is included in its delivery URL. This may be an important consideration when selecting the folder where you want to upload. For more information, see [Folder modes](dam_folder_modes).
* Uploading password-protected PDFs isn't supported. 

> **What else can you do with Assets?**:
>
> * [Manage and share folders and collections](dam_folders_collections_sharing)

> * [Find assets using advanced search](dam_advanced_search)

> * [Perform operations on individual assets](dam_manage_individual_assets)

> * [Media Library administrator tasks](dam_media_library_administration)
