Store uploads safely
Set up files and pictures with appropriate visibility, limits and ownership.
By Apirex Team · Updated
- Name the file types and maximum sizes your app needs.
- Choose private storage for personal files, and public storage only for deliberately public assets.
- Define upload and download rules for the file owner.
- Test upload, read-back, deletion and access from a different account.
Important edge cases
Handle a cancelled file picker, a rejected upload, interrupted network access and an expired download link. Do not expose personal files through a public bucket simply because a signed URL was harder to implement.