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
- Websites hosted on my appwrite sites hav...
Hello, all my websites hosted on appwrite sites are not running I am getting this message "This site canβt be reached drivehub.appwrite.network took too long t...
- Appwrite Auth & Function don't reveal cl...
When I execute a function or sign in with my Flutter app, Appwrite does not show my real IP: instead, it seems that Appwrite shows Fastly CDN IP address.
- Why does this happen?
`AppwriteException: general_argument_invalid, Invalid `secret` param: Value must be a valid string and at least 1 chars and no longer than 256 chars (400)` the...