[SOLVED] AppwriteException: null, File bytes must be provided for Flutter web (0)
- 0
 - Flutter
 - Storage
 
Like
        filename: 'test_name.jpg',
like this?
Yes but the payload and preview tabs
Is this a local environment?
How you've initialized your client?
you can also print the the stack trace by adding a stackTrace beside of the e in the catch
In instance, catch(e,stacktrace) then try to print these both for additional debuging
i'm using the cloud i guess, is the one with the endpoint ''https://cloud.appwrite.io/v1"
they show this:
I think you need to add the client initializing code
Like so:
Client client = Client()
    .setEndpoint('https://cloud.appwrite.io/v1')
    .setProject('[PROJECT_ID]');         // Your project ID
Right now the request pointing to :51188 which is the port of your local flutter project in the browser
Have you initialized the client like so?
yeah like this
client = Client().setEndpoint(endPoint).setProject(projectId);
Maybe it happened after the storage? Can you print it to see that is correct?
I DID IT
What?
i create the file on the bucket
What you've changed?
i think i forgot the endpoint like you say
At last it worked
<a:agooglethumbsup:635256484682530825>
i will check again just to place the answer here
yeah, i forgot the endpoint and i have to do the createFile.fromBytes instead the .fromPath
thank you so much, sorry for taking your time for such a silly mistake
[SOLVED] AppwriteException: null, File bytes must be provided for Flutter web (0)
Not a problem. Gladly
Recommended threads
- One org lost all data out of 13 org's af...
> https://<domain>/v1/storage/buckets?queries%5B0%5D=%7B%22method%22%3A%22limit%22%2C%22values%22%3A%5B6%5D%7D&queries%5B1%5D=%7B%22method%22%3A%22offset%22%2C%...
 - Failed to load data from database
My app broken, it throw AppwriteException exception. Few days ago it works well. AppwriteException: , ClientException with SocketException: Failed host lookup:...
 - AI feature by functions?
I'm creating a website where, in short, users can index certain genealogical content. In connection with the development of AI, I was thinking about introducing...