Back
Uncaught : AppwriteException: , File bytes must be provided for Flutter web (0)
- 0
- Self Hosted
- Flutter
My app works perfectly on android, but I get this error in flutter web.
Code to upload the file:
TypeScript
final result = await storage.createFile(
bucketId: 'PostImages',
fileId: ID.unique(),
file: InputFile.fromPath(path: _image!.path, filename: _image!.name),
);
What I'm ding wrong?
TL;DR
Developers are experiencing an error with their Flutter web app when trying to upload a file using the `storage.createFile` function. The error message is "Uncaught : AppwriteException: File bytes must be provided for Flutter web (0)". They are not experiencing this issue on Android. They have provided the code snippet they are using to upload the file.
Solution: It appears that the `storage.createFile` function requires file bytes to be provided for Flutter web, which is not necessary for Android. To fix this issue, developers should update their code to include the file bytes when calling the function. The `InputFile.fromPath`Recommended threads
- Usage of the new Client() and dealing wi...
Hey guys, just a quick one - we had some web traffic the other day and it ended up bombing out - To put in perspective of how the app works, we have a Nuxt Ap...
- [Beginner] CLI --queries Syntax Error & ...
Hi everyone! I am a beginner with Appwrite and trying to use the CLI, but I'm stuck with a syntax error. Any guidance would be greatly appreciated! 🙏 **Enviro...
- [SOLVED] curl error Number: 6 — function...
Hello, I invested a lot of time in this error in a fresh install of appwrite 1.8.1 and lasted until fix, this if for helping anyone that can have the same weird...