Hi i am geting and error 502 (bad gateway) when i create file from my node.js server (from client it works) I am using cloud. Cloud someone help me please?
here is code for creating: await storage.createFile(".........", "...........", InputFile.fromBuffer(myBufferString, "constant file name"))
Can i have one constant name for all files? I dont really want to name my files.
where is your server code running and what's the endpoint set to?
my server code is in node.js, is running in my node.js server
endpoint is set to: https://cloud.appwrite.io/v1
interesting...that should work fine...do other API calls work fine in your node server?
yes it does, for example documents work properly
weird...what's your project ID?
my project ID is: "Quizi"
hmm i don't see anything for that project...
can you try to print the endpoint before the createFile call?
i dont know why is it in updateFile, when i am creating it
and i have to have original name for every file?
I am very sorry, mistake is somewhere else. Sorry for interupting
So you're all good now?
Yes, i am all good. Thank you very much
Maybe only one question. When i create the file, it creates plain/text (inside is base64), but i would like to create .png, is there any way to do it?
It could be due to the missing mime type parameter or the file name on input file
Recommended threads
- Got message for auto payment of 15usd fo...
how did this happen? 1. i claimed my 50usd credits via jsm hackathon - https://hackathon.jsmastery.pro/ 2. it asked me which org. to apply the credits on, i se...
- 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...