Skip to content
Back

[SOLVED] Update file name throug server side

  • 0
  • Self Hosted
  • Storage
Mosh Ontong
16 Nov, 2023, 15:59

It seems the updateFile method in node-appwrite, does not provide a name a parameter

TypeScript
    /**
     * Update File
     *
     * Update a file by its unique ID. Only users with write permissions have
     * access to update this resource.
     *
     * @param {string} bucketId
     * @param {string} fileId
     * @param {string[]} permissions
     * @throws {AppwriteException}
     * @returns {Promise}
     */
    updateFile(bucketId: string, fileId: string, permissions?: string[]): Promise<Models.File>;
    /**
TL;DR
The user has solved the issue by deleting the node module. They suggest checking the version and provide a link to the correct parameter in the GitHub repository. The user also notes that the `updateFile` method in `node-appwrite` does not have a name parameter.
Drake
16 Nov, 2023, 18:16

double check the version you have. Version 11.0.0 should have the parameter: https://github.com/appwrite/sdk-for-node/blob/1390e2dea2d22b3b8944e72111bd1c1b49a3d8aa/index.d.ts#L3864

Mosh Ontong
16 Nov, 2023, 18:50

Hehe I already solve this I just delete the node module πŸ˜…

Drake
16 Nov, 2023, 19:20

[SOLVED] Update file name throug server side

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more