Skip to content
Back

Corrupted files on AWS S3

  • 0
  • Self Hosted
  • Storage
Jorge
26 Jun, 2025, 20:46

Hello!

I'm having trouble using S3 storage with appwrite for file uploads. It happens when uploading files from the Javascript SDK or from the console.

The file gets uploaded, gets sent to AWS, but somewhere in the way it gets corrupted. As you can see in the screenshots, the preview shows the file correctly, but when I open the file (or get the link through the SDK and open it), it doesn't show correctly, only a portion of it (looks like just a chunk of it has been uploaded?). Accessing the file directly through the AWS Portal, it doesn't open (encryption maybe?).

It's happening with image files and audio files, I haven't tested with other file types.

Function deployment works well, and gets saved to AWS correctly, so I think the problem is only with files.

Has this ever happened? How can I troubleshoot it - is there a place where the storage logs get shown?

Thank you in advance!

TL;DR
Developers experiencing issue with corrupted files on AWS S3 when uploading through Appwrite. Files appear only partially uploaded or not opening correctly. The issue might be with Appwrite fetching back the file from AWS. Solution: Try disabling encryption on the Appwrite bucket to see if the file uploads correctly.
Jorge
26 Jun, 2025, 20:55

Update: disabling encryption on the Appwrite bucket, I can see the whole image directly on AWS portal, so the upload is working. This makes me think the problem lays in appwrite fetching back the file from AWS or something between the appwrite server and the client

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