Rank 1: Thread
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?
Votes
0
Replies
15
Participants
Unknown
Messages
16
Rank 1: Thread
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?
Rank 1: Thread
No, for python
Rank 1: Thread
I’m trying to handle file uploads.
Rank 1: Thread
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).
Rank 1: Thread
I checked your docs btw
Rank 1: Thread
It’s outdated
Rank 1: Thread
I am using the same thing and idk why it won’t import
oh...ya...there are some new changes coming-ish with files
Rank 1: Thread
what is the current replacement for InputFile?
Rank 1: Thread
In ver 7.0.0
hmmmm perhaps you should use version 6.1.0 🧐
Rank 1: Thread
Let me try
Rank 1: Thread
Hmm… I think it worked lol
Rank 1: Thread
Ty ty 😄