Skip to main content
Access storage methods via 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.
Parameters Returns (UploadResponse)
Store the path alongside the url in your database. You need it to delete the file.
Example — browser file input

deleteFile

Delete a previously uploaded file by its storage path.
Parameters

Limits

Uploads that exceed 10 MB are rejected with a StorageError.