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
- Appwrite Cloud project is paused and nev...
Hi Appwrite Team & Community, I am facing a problem with one of my Appwrite Cloud projects which seems to be identical to the other cases of "paused projects" ...
- Timed out waiting for runtime error
execution id 6a3e0791978712d81ee0 im having issue with appwrite function runtime performance. even after 4gbram and cpu same function sometimes completes in a...
- Project auto-blocked after load testing ...
Hi team π My project has been automatically blocked with the message: "Project is currently blocked β Access to this project is restricted. Contact support if...