upload_file
Uploads images, videos, audio files, or documents to Dreep and returns a ready-to-use delivery URL. Applies optional transforms before storage, replacing the original.
Instructions
Uploads an image, video, audio file or document to Dreep and returns the asset.
The result's url is the ready-to-use delivery URL. Files over 100 MB stream
straight to storage through a presigned upload. A transform given here is
applied before storage and replaces the original.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | No | Full object key (folder path + filename). Excludes folder/folder_id. | |
| path | No | Path of a local file to send. Give this or content_base64, not both. | |
| folder | No | Destination folder slug path, e.g. 'marketing/2026'. Created if missing. | |
| filename | No | Filename to store, e.g. 'hero.jpg'. Defaults to the path's name. | |
| folder_id | No | UUID of an existing destination folder. | |
| transform | No | Transform to apply. On upload it runs before storage. | |
| preset_key | No | Key of a saved preset to apply instead of 'transform'. | |
| content_type | No | MIME type; guessed from the filename if omitted. | |
| content_base64 | No | File content, base64-encoded (20 MB max). Requires filename. | |
| auto_create_folders | No | False to require the folder path to exist already. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||