Skip to Content
APIUpload

Upload File

Upload the file directly to object storage using the presigned URL.

Request

curl -X PUT "$UPLOAD_URL" \ -H "Content-Length: <FILE_SIZE_BYTES>" \ --data-binary "@./image.jpg"
  • Upload uses the presigned uploadUrl directly (no Authorization header). Get it from Presign Upload URL.
  • Set an accurate Content-Length and send raw bytes. If you use Blob/Buffer as the body, you can omit Content-Length.
  • See the Code Demo for a full end-to-end example (demo.js / demo.py).
Last updated on