OK. This has been bugging me for 8 hours now. In the Flutter web app I'm working on, the uploaded files are be not the current file, which I expect, but is actually the previous file. Here's how it goes:
- To test my "image checker," I select a file that's bigger than what's set up in my bucket. Let's call it pic1.
- I attempt to upload it, and since it's greater the max file size, I catch the error, bring up an error alert, and choose another image.
- The second image, pic2, is less than the max file size, so it's expected to upload OK. However, for some reason, the file that get's uploaded is still pic1, though the filename says it's pic2. So I get another "storage_invalid_file_size" error and proceed to pick a third file.
- Upon selecting pic3, file size doesn't matter. A call to storage.createFile pushes through, but the file that gets uploaded is pic2.
- And if I select another file, pic4, and upload it, it's pic3 that gets uploaded (or not, depending on the actual file size of pic3).
Any insights, please, before I tear my hair out. Thanks!
BTW, I'm using the form_builder_image_picker package to select the images.
Recommended threads
- Problem with the new Email policies
when user set those thing from cloud panel and when they open that page again or reload that time it forget what we have checked and it set default to false on ...
- Deleted my account, trying to signup aga...
https://cloud.appwrite.io/console/login?error=%7B%22message%22%3A%22This+email+address+must+already+be+in+its+canonical+form.+Please+remove+aliases%2C+tags%2C+o...
- Unable to create Sites or Functions with...
Heya, I was looking at the appwrite documentation for Sites API with the server api: https://appwrite.io/docs/references/cloud/server-nodejs/sites I can’t fin...