Back

Can't upload files larger than 5MB unless the user has update permission

  • 0
  • Self Hosted
  • Web
  • Storage
Mr. Bakbuki
31 Jan, 2024, 23:00

For some weird reason when the uploaded file is bigger than 5MB, it doesn't upload and stays on "pending" The client logs show that it's unauthorized. I just switched to a self hosted instance, this did not happen on the cloud version.

TL;DR
Issue: Can't upload files larger than 5MB unless the developer has update permission. Solution: Set update permissions for larger file uploads. More information available at https://appwrite.io/docs/products/storage/upload-download#large-files. Details: When uploading a file larger than 5MB, it gets chunked by the SDK. This requires the developer to have update permissions in order for the upload to be successful. This issue may arise when switching from the cloud version to a self-hosted instance.
Mr. Bakbuki
31 Jan, 2024, 23:01
D5
31 Jan, 2024, 23:14

Files above 5mb will be chunked by the SDK. I think that's the reason why it's needed to set update permissions .

Reference: https://appwrite.io/docs/products/storage/upload-download#large-files

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more