Skip to content

📚 Documentation: missing InputFile import #642

@Franco21463702

Description

@Franco21463702

💭 Description

API Node.js SDK documentation to 'Create File'. The code snippet has an unused import: "const fs = require('fs');"

and "const promise = storage.createFile('[BUCKET_ID]', '[FILE_ID]', InputFile.fromPath('/path/to/file.png', 'file.png'));" is incorrect, it should be sdk.InputFile

Steven asked me to create the issue after raising it in Discord support.

Link to docs: https://appwrite.io/docs/server/storage

👀 Have you spent some time to check if this issue has been raised before?

  • I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

Metadata

Metadata

Assignees

Labels

documentationImprovements or additions to documentation

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions