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 are 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.
Any settings that were applied in your account's 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 to uploaded files. The Media Library upload preset defaults and other upload settings can be set by users with one of the Admin roles. For details, see Upload Settings.
- If you have one of the Admin roles, you can upload to all folders.
- If you have a Media Library user role, you can upload only to folders where you have at least Can contribute permissions. For details, see Folder sharing and permissions.
The Media Library provides a variety of ways to upload media to your Cloudinary account from a variety of sources. Regardless of the option you choose, the selected files are uploaded to the currently selected folder.
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. (If you're currently in a view other than the folder view, the files or folders are added to the root folder.)
- Upload local files: Click the drop-down button next to the main Upload button and select Upload local files to open your file system folder and select the file(s) to upload.
When using either of these options, public IDs and tags (if any) are applied according to your account's Media Library 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.
- Uploading entire folders is supported only when dragging to the Media Library and not via the Upload local files or Upload Widget options.
- Make sure the folder names of any uploaded folders (including sub-folders) do not 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.
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 from remote sources such as a Web URL, Google Search, DropBox, Shutterstock and more.
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 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 account, submit a support request.
Watch the Media Library Upload video tutorial to see this in action.
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 in your account is by monitoring metadata entry upon asset upload.
When you upload assets to the Media Library, you may be prompted to fill in metadata fields before uploading. Depending on the preferences set by your administrator in the Request structured metadata on upload section of the Media Library Preferences, you'll either be prompted every time you upload, or only if there are empty mandatory metadata fields that must be filled in.
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 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.
- By default, the public ID (the file name that will be used in the URL) is based on the filename of the selected files, either with or without a random suffix, depending on the options set in your account settings.
- Depending on the settings in your account's Media Library default upload preset (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 for more information.NoteTo enable overwriting assets, turn Overwrite on in the Storage and Access tab of your upload preset. 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. Make sure to upload your assets to a folder that is shared only with the user groups that should be able to access them.
- By default, the folder structure where an asset is stored is included in its delivery URL. This may also be an important consideration when selecting the folder where you want to upload.NoteIf Dynamic folders mode is enabled for your account, Media Library folders do not impact the delivery URL.
- Uploading password-protected PDFs is not supported.