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
- How can I disable client-side account re...
Hi everyone! Iβm currently building a game backend using Appwrite, and Iβd like to prevent users from creating new accounts directly through the client. My go...
- relationships bug or error idk
hey every one, am using am using appwrite on a project and ran into a problem where by created a relationship and two way to be specific and it is stuck on proc...
- Domain is owned by a different organizat...
Hi Appwrite team, I'm trying to add my custom domain **futlive9.com** to my project, but I'm getting the error: "Domain is owned by a different organization." ...