
So far as I can tell Storage's updateFile
function appears to be missing an argument to actually pass a file?
If it's not meant to update a file from one file to a new one what does this function do?
It's not clear to me from the docs <:thonk:617026528424886275>

To upload a file use the createFile
function.
https://appwrite.io/docs/client/storage?sdk=web-default#storageCreateFile
The updateFile
is for updating the file permissions. not for changing the file content.

Ohhhh

@Binyamin it might make more sense to call the function updateFilePermissions
or something in that case.

I read updateFile
as "take an existing file and replace it with a new one"

And the description in the docs just says this:
Update a file by its unique ID. Only users with write permissions have access to update this resource.

I get you, it does sounds like you're updating the file itself.

Yee

🤷♂️

Also, I went over the code and that function its 100% permission related.

That sounds like something you can open issue here

ya, but this allows us to use this endpoint for other things in the future...like maybe updating the file name

That's what I've thought So, it's more general function but - for now - just permissions

can i get the code link?

Sure thing

Recommended threads
- The new Bulk API and Realtime updates
It seems that the new Bulk API doesn't actually send realtime updates which is making a huge problem for me. I also wanted to know different is it deleting mul...
- Which repo is used for cloud.appwrite.io...
I made a PR and it got merged into appwrite/console Repo. - It had this description: "The console that makes Appwrite tick from the browser" - I assumed this i...
- Send Team Invites w/o Owner Role
Hi there! I'm trying to get a specific bit of functionality set up in my application. I would like to be able to allow users to send Team Invite emails to oth...
