Error on upload file "Param "fileId" is not optional" via appwrite node.js function
- 0
- Self Hosted
- Functions
- Web
- Storage

Hey everyone, I am using appwrite version 1.6.0 self-hosted with coolify. I want to switch back to the cloud env but at the moment we are in a concept phase and we are enjoying the self-hosted testing-env.
If I call createFile in my appwrite Node.js function I get this "required" parameter error.
Error: Param "fileId" is not optional.
at Client.call (/usr/local/server/src/function/node_modules/node-appwrite/lib/client.js:206:15)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async uploadChunk (/usr/local/server/src/function/node_modules/node-appwrite/lib/services/storage.js:383:24)
at async Storage.createFile (/usr/local/server/src/function/node_modules/node-appwrite/lib/services/storage.js:417:13)
at async Module.default (file:///usr/local/server/src/function/src/main.js:119:24)
at async execute (/usr/local/server/src/server.js:208:16)
at async action (/usr/local/server/src/server.js:225:7)
at async /usr/local/server/src/server.js:14:5
If I execute the function in the appwrite cloud env or if I start the appwrite function locally with my self-hosted endpoint everything works. createFile called from the web-js-sdk with Nuxt also works fine. I found some threads in Discord and on the appwrite forum but nothing gave me hints what to do. It breaks the moment I try to call it from the appwrite function on the self-hosted vps.
Thank you very much. Appwrite seems to be able to empower a two-man team to build some amazing things.
Recommended threads
- Python: Execution timeout with xasync=tr...
Hello, I have a long running function that is meant to analyze and update ~100k entries into Appwrite. The data is retrieved as a blob from another source and...
- Self Hosted 1.6.0 Oauth2 callback not wo...
I have a self hosted server with version 1.6.0 My Front-End is Flutter, working on Android When I run the createOAuth2Session with Google: * it creates the acc...
- CORS error
Hey everyone, I've been stumped on a CORS error trying to use the PATCH method on appwrite. I'm hosting locally. I keep getting the same two errors: 'https://c...
