Back
Uncaught : AppwriteException: , File bytes must be provided for Flutter web (0)
- 0
- Self Hosted
- Flutter
D5
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
- 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...