upload
Transfer files (images, videos, raw data) to Cloudinary using URLs, file paths, base64 content, or binary data. Assign folders, public IDs, and tags for organized storage.
Instructions
Upload a file (asset) to Cloudinary
Input Schema
Name | Required | Description | Default |
---|---|---|---|
folder | No | Optional folder path in Cloudinary | |
publicId | No | Optional public ID for the uploaded asset | |
resourceType | No | Type of resource to upload | auto |
source | Yes | The source media to upload (URL, file path, base64 content, or binary data) | |
tags | No | A string containing Comma-separated list of tags to assign to the asset |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"folder": {
"description": "Optional folder path in Cloudinary",
"type": "string"
},
"publicId": {
"description": "Optional public ID for the uploaded asset",
"type": "string"
},
"resourceType": {
"default": "auto",
"description": "Type of resource to upload",
"enum": [
"image",
"video",
"raw",
"auto"
],
"type": "string"
},
"source": {
"anyOf": [
{
"description": "URL of the image/video to upload",
"format": "uri",
"type": "string"
},
{
"description": "Base64 encoded file content or file path",
"type": "string"
},
{
"description": "Binary data to upload"
}
],
"description": "The source media to upload (URL, file path, base64 content, or binary data)"
},
"tags": {
"description": "A string containing Comma-separated list of tags to assign to the asset",
"type": "string"
}
},
"required": [
"source"
],
"type": "object"
}