Tryna upload plots via cloud functions to my storage bucket but can’t manage to do so. InputFile supposedly is no longer supported after 7.0.0 so I’m having trouble using that. Thoughts?
I'm assuming you're talking about the node SDK. can you try importing from node-appwrite/file?
No, for python
I’m trying to handle file uploads.
response = storage.create_file( bucket_id=‘ ‘ file_id=‘unique()’ file=InputFile.from_path(file_path) )
FYI, it's best to wrap code in backticks to format a bit nicer. You can use 1 backtick for inline code (https://www.markdownguide.org/basic-syntax/#code) and 3 backticks for multiline code (https://www.markdownguide.org/extended-syntax/#syntax-highlighting).
I checked your docs btw
It’s outdated
I am using the same thing and idk why it won’t import
oh...ya...there are some new changes coming-ish with files
what is the current replacement for InputFile?
In ver 7.0.0
hmmmm perhaps you should use version 6.1.0 🧐
Let me try
Hmm… I think it worked lol
Ty ty 😄
Recommended threads
- The file size is either not valid or exc...
Hello, I am receiving the following error when I am trying to deploy a function from my local. ``` > appwrite push functions --function-id xxxxxxxxx ℹ Info: Va...
- How does sending email from the Appwrite...
I noticed that the pricing page mentions “Messages – 1000 per month” for the Free plan. Is this different from sending emails? When I try to send an email usin...
- Appwrite functions dart runtime (3.7 sup...
It seems that currently Appwrite functions only support Dart runtime to 3.5, for my code I need dart 3.7. Is there any plan to support Dart3.7 runtime soon. Is ...