Can my web app upload directly to Code Buckets from the browser?
The API allows cross-origin requests, but never put a clsk_ key in front-end code: anyone could read it and use your buckets.
Instead:
- The browser sends the file to your backend.
- Your backend uploads it to Code Buckets with the key (one request for files up to 4 MiB, chunked for larger).
- Your backend returns the
public_url(if public) or the object id.
Learn more#
Related articles
Still need help?
Tried the steps above and still stuck? Email us. We usually reply within the first hour, and always within 24 hours. A full support team is with you.
Infrastructure questions, or permanent deletion of your data
infrastructure@clatterlabs.xyzFor deleting your whole account or the data of one service.