Store uploads safely

Set up files and pictures with appropriate visibility, limits and ownership.

By Apirex Team · Updated

  1. Name the file types and maximum sizes your app needs.
  2. Choose private storage for personal files, and public storage only for deliberately public assets.
  3. Define upload and download rules for the file owner.
  4. 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.