Get presigned upload URL
Generate a presigned PUT URL for direct-to-bucket photo upload.
Authorizations
Path Parameters
Unique session short_id identifier.
Query Parameters
Photo classification used to namespace the generated S3 key. See PhotoTypeEnum for the full set.
front, back, left, right, top, bottom, nutrition, ingredients, barcode, recycling, certification, other Original filename for extension detection.
Response
OK
Presigned upload URL and metadata.
The client sends the raw image bytes as the request body of a single
PUT to upload_url, with exactly the headers in upload_headers.
Those headers are part of the signature — changing or omitting one is a
403 from the bucket.
C-5227 replaced a presigned multipart POST (upload_fields) here:
Cloudflare R2, which has held media since C-4517, does not implement the
S3 POST Object API and answered every such upload with
501 NotImplemented.
Presigned URL to PUT the image bytes to.
HTTP method for the upload request. Always PUT.
"PUT"Headers that must be sent verbatim with the upload; they are signed.
Object key where the file will be stored.
Maximum accepted size. Enforced server-side when the upload is registered.
Seconds until the presigned URL expires.