GUIDES BY TOPIC
Uploads
-

Use Checksums to Detect Corrupt Uploads
Use transport checksums for corruption detection and content hashes for deduplication only when their different semantics are explicit.
-

Retry Multipart Image Uploads Safely
Retry multipart uploads by chunk identity and server acknowledgment, never by blindly replaying the entire operation.
-

Track Upload Progress in the Browser
Browser progress should report transferred bytes separately from server validation and post-upload processing.
-

Build Resumable Image Uploads
A resumable upload needs a durable session, stable chunk identity, acknowledged offsets, and an explicit finalize step.
-

Choose Signed or Unsigned Browser Uploads
Prefer signed browser uploads when users can influence valuable parameters; reserve unsigned presets for tightly constrained, low-risk intake.
-

Scan SVG Uploads Before Publishing
Treat SVG as active structured content: sanitize or rasterize it, and serve it with a policy appropriate to your threat model.
-

Defend Image Uploads from Decompression Bombs
Defend against decompression bombs by limiting decoded work, parser time, dimensions, frames, and memory in an isolated processing boundary.
-

Limit Image Dimensions and Pixel Count at Upload
Enforce byte, width, height, frame, and total pixel limits before expensive transforms begin.
-

Validate File Type Beyond the Extension
Validate decoded content and an allowlisted format, because extensions and client-declared MIME types are only hints.
-

Secure Direct Image Uploads with Signed Requests
A secure direct upload keeps image bytes off your application server while keeping authorization, allowed parameters, and long-lived secrets under server control.
-

How to flag and quarantine uploads that contain sensitive content with a Production Image API
Quarantine first, evaluate with explicit thresholds, preserve an appeal or review path, and publish only after policy allows it.
-

Verify Image API Webhook Signatures
Verify signed events, persist their unique identifiers, acknowledge quickly, and process them idempotently outside the request.