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
- Apple OAuth Scopes
Hi Hi, I've configured sign in with apple and this is the response i'm getting from apple once i've signed in. I cant find anywhere I set scopes. I remember se...
- Sign In With Apple OAuth Help
Hi All! I've got a flutter & appwrite app which Im trying to use sign in with apple for. I already have sign in with google working and the function is the sam...
- [SOLVED] OAuth With Google & Flutter
Hi all, I'm trying to sign in with google and it all goes swimmingly until the call back. I get a new user created on the appwrite dashboard however the flutte...