Upload files
cloudinary_uploadUpload local files or directories into a Cloudinary folder, with optional recursion, overwrite control, and a confirmation token before replacing existing assets.
Instructions
Upload a local file or directory (inside the allowed local directories) into a Cloudinary folder. The resource type follows the file extension unless resource_type is set. If the upload would replace existing assets, the first call returns needs_confirmation with a confirm_token instead of uploading.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Name (public ID) for a single file; default: the file name without extension | |
| folder | No | Target Cloudinary folder, from the root (default: root) | |
| dry_run | No | Only show what would happen; changes nothing and never returns a confirm_token | |
| overwrite | No | Replace assets that already exist with the same public ID (default: true; false skips them) | |
| recursive | No | Include subdirectories of local_path, mirrored as subfolders | |
| local_path | Yes | Local file or directory, relative to the server's working directory or absolute | |
| confirm_token | No | Token from a previous call with the same arguments that returned needs_confirmation; runs exactly that plan | |
| resource_type | No | Force a resource type (default: "auto", by file extension) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||