Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

📚 Documentation: missing InputFile import #642

Open
2 tasks done
Franco21463702 opened this issue Sep 4, 2023 · 2 comments
Open
2 tasks done

📚 Documentation: missing InputFile import #642

Franco21463702 opened this issue Sep 4, 2023 · 2 comments
Assignees
Labels
documentation Improvements or additions to documentation

Comments

@Franco21463702
Copy link

💭 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?

@stnguyen90 stnguyen90 changed the title 📚 Documentation: 📚 Documentation: missing InputFile import Sep 4, 2023
@stnguyen90
Copy link
Contributor

@Franco21463702 thanks for creating this issue! 🙏

@JDeepD
Copy link

JDeepD commented Oct 22, 2023

I would like to work on this.

JDeepD referenced this issue in JDeepD/appwrite Oct 22, 2023
The example given in create-file has an unused import and a wrong method call.
@eldadfux eldadfux transferred this issue from appwrite/appwrite Feb 19, 2024
@eldadfux eldadfux added the documentation Improvements or additions to documentation label Feb 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

5 participants