Hi. In some cases photo seems to be corrupted when I upload it from my app. Details of the files are correct but I looks like this. It only happens when I upload it from my app ( by createFile method). Its ok when upload from Appwrite panel.
He are 2 photos. One original. Second uploaded and then downloaded
I'm sending photos like this in Flutter Web. In most cases it works. But sometimes photos are corrupted.
what version of Appwrite and what Appwrite SDK version are you using?
Sdk 1.4.9, Appwrite 11.0.0
Are you on Appwrite Cloud?
When you say it happens sometimes, is it sometimes for the same file?
no. the problem is repeatable for random files. It happens always for these files, but only on web. In Flutter Android i'm using InputFiles.fromPath in createFiles method and everything is fine. I'm not on Appwrite Cloud, only on my Vps
@Steven Hi, Do You have any idea? Could it be some problem with Sdk version? I recently updated Sdk. But it strange that this error is not for all files..
How big are these files that get corrupted?
Here is example
Discord might scale stuff down. Would you please check on your end the size of the file before upload?
It's gotta be related to how we chunk the data. Maybe an off by one error
sorry, could You explain briefly?
Soo there might be a bug with. We're goign to make a release soon, but you could try using our main branch to test before we release: https://github.com/appwrite/sdk-for-flutter/tree/main
Hi, I updated Appwrite to 11.0.1 and Sdk to 1.14.13. And it's working:)
Thanks for the update. Will mark this as solved now.
[SOLVED] Photos corrupted
Recommended threads
- Can't really use the S3 storage device
hi, I've linked my local MinIO Instance (it's just for testing, not for prod.) to my appwrite instance, when i'm uploading a file it's getting uploaded to the S...
- Storage Chunk upload bug
Hi, I'm experiencing an issue with Appwrite Storage chunked uploads. Small files upload successfully, but larger video files that require chunking fail. For ...
- listRows result parsing issue
I'm using Appwrite Dart SDK "24.2.0". When I perform a listRows call in dart, I have this reponse in JSON: in " Future<models.RowList> listRows()" { "total" :...