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
- dynamic key missing scopes for database ...
Here are the scopes listed, I get permission errors for reading row and document. Appears to be missing since last time i checked. Database 6 Scopes policies....
- Worker functions stuck on "Fetched 0 fun...
Appwrite Version: 1.9.0 Bug Description: The appwrite-worker-functions container gets stuck in an infinite loop logging "Fetched 0 functions..." while scheduled...
- I am using s3 for app storage but is it ...
_APP_STORAGE_DEVICE=s3 puts everything to the s3 storage but i need to be able to keep the function builds and site in the local and not waste the cloud storage...