Like
filename: 'test_name.jpg',
Votes
0
Replies
24
Participants
Unknown
Messages
25
Like
filename: 'test_name.jpg',
Rank 1: Thread
like this?
Yes but the payload and preview tabs
Is this a local environment?
How you've initialized your client?
Rank 5: Hypervisor
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
Rank 1: Thread
i'm using the cloud i guess, is the one with the endpoint ''https://cloud.appwrite.io/v1"
Rank 1: Thread
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 IDRight 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?
Rank 1: Thread
yeah like this
client = Client().setEndpoint(endPoint).setProject(projectId);Maybe it happened after the storage?
Can you print it to see that is correct?
Rank 1: Thread
I DID IT
What?
Rank 1: Thread
i create the file on the bucket
What you've changed?
Rank 1: Thread
i think i forgot the endpoint like you say
At last it worked

Rank 1: Thread
i will check again just to place the answer here
Rank 1: Thread
yeah, i forgot the endpoint and i have to do the createFile.fromBytes instead the .fromPath
Rank 1: Thread
thank you so much, sorry for taking your time for such a silly mistake
Rank 1: Thread
[SOLVED] AppwriteException: null, File bytes must be provided for Flutter web (0)
Not a problem. Gladly