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
- Update row sheet not loading
After right clicking a row header and click update, the sidebar fails to load (never-ending skeleton)
- Domain is already used. Please try again...
I have a website with where the www.domain.me This website works just fine But if I try to visit domain.me. I get this error. I keep getting sent to some app ri...
- Realtime api and labels as permission
in my tables i set labels as permission and real-time capabilities stopped working. Before when i was having "any" role everything was working. Note: user have...