upload
Upload images and videos to Cloudinary for storage and delivery. Supports large files with chunked processing and provides customizable options like resource type and public ID assignment.
Instructions
Upload media (images/videos) to Cloudinary. For large files, the upload is processed in chunks and returns a streaming response. The uploaded asset will be available at:
HTTP: http://res.cloudinary.com/{cloud_name}/{resource_type}/upload/v1/{public_id}.{format}
HTTPS: https://res.cloudinary.com/{cloud_name}/{resource_type}/upload/v1/{public_id}.{format} where {cloud_name} is your Cloudinary cloud name, resource_type is 'image' or 'video', and format is determined by the file extension.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Path to file, URL, or base64 data URI to upload | |
| resource_type | No | Type of resource to upload. For videos, the upload will return a streaming response as it processes in chunks. | |
| public_id | No | Public ID to assign to the uploaded asset. This will be used in the final URL. If not provided, Cloudinary will generate one. | |
| overwrite | No | Whether to overwrite existing assets with the same public ID | |
| tags | No | Tags to assign to the uploaded asset |