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.