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
- Project paused?
Hello, I have two Appwrite projects and I can not resume them for some reason. I'm using the free plan, and I saw in the pricing page that 2 free projects are a...
- Python TablesDB Rework
Hi, i starting to rework some older functions to TablesDB list_rows Method. I used list_documents with a resultset with worked fine. Now i tried to get all rows...
- HUGE OUTRAGE IN APPWRITE, I CANNOT ACCES...
I have 2k users trying to access, sending me messages. What am I supposed to do? Please solve this asap.