client.storage. Uploaded files are served from a public CDN — no extra configuration required.
Storage operations accept both
pk_live_... and sk_live_... keys. Use pk_live_... in browser code for user-initiated uploads, and sk_live_... for server-side uploads. Never expose your secret key in browser code.upload
Upload a file to storage.
Returns (
UploadResponse)
Store the
path alongside the url in your database. You need it to delete the file.deleteFile
Delete a previously uploaded file by its storage path.Limits
Uploads that exceed 10 MB are rejected with a
StorageError.