Web Developer
I had some strange issues with the appwrite self-hosted one. I'm using the node-appwrite npm package to create the file.
But getting error
AppwriteException: The uploaded file is invalid. Please check the file and try again.
Strangely, it is created in storage with the correct format, and I can download and use it. This exception caused my angular app not to work properly.
I need help understanding what is happening.
This is payload i got
code: 403 message: "The uploaded file is invalid. Please check the file and try again." type: "storage_invalid_file" version: "1.5.10"
Im not sure why its 403 rather than 400, but my Key is good everything else is working and even thou its creating file on server but still returns error.
NOTE: everything is working, except only when I createFile from Nodejs SDK and it creates the file perfect but throw this exception.