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
uploadUrldirectly (noAuthorizationheader). Get it from Presign Upload URL. - Set an accurate
Content-Lengthand send raw bytes. If you useBlob/Bufferas the body, you can omitContent-Length. - See the Code Demo for a full end-to-end example (
demo.js/demo.py).
Last updated on