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
- Function connected custom domain error: ...
My domain is served through Cloudflare. Domain is now connected with the appwrite function. But when accessing the domain, I get the below error. Any suggestion...
- Error | general_unknown
I have built a website using Appwrite Cloud as backend, and also using sites for deployment. My website is live but sometimes it shows Appwrite's Error general_...
- Introducing new string column types made...
Adding new string types is hugely bennificial! Unfortunately it made the current column types not editable to change their types to the new longer field types.