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
- [Regression] Appwrite 25.1.0 returns Inv...
I've already opened an issue on GitHub, but somewhat it doesn't seem like GitHub is monitored very closely, so I'm leaving a bug report here on Discord as well....
- Helping in unblock my account
I deleted my Appwrite Cloud account that was linked via GitHub. Now I activated my GitHub Student Pack and want to sign up again using the same GitHub account, ...
- Not allowed permission to upsert a prese...
```js const presenceID = ID.unique(); setPID(presenceID); const presence = await presences.upsert({ presenceId: presenceID, status: "online"...