Upload a file to R2 storage
Upload a file to Cloudflare R2 storage with automatic organization and metadata extraction.
This endpoint requires API key authentication.
File to upload (supports various formats, max 1GB)
Custom folder path for organization (e.g., “audio/recordings”)
Whether the file should be publicly accessible
Custom metadata to attach to the file
Audio Files
MP3, WAV, FLAC, M4A, OGG, WEBM, AAC
Video Files
MP4, AVI, MOV, WMV, MKV, WEBM
Documents
PDF, DOC, DOCX, TXT, RTF, ODT
Images
JPG, PNG, GIF, WEBP, SVG, BMP, TIFF
Data Formats
JSON, XML, CSV, XLSX, ZIP, TAR, GZ
Files are automatically organized using the following structure: