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
- "Restore project" button fails: "Invalid...
In the dashboard, it clicking "Restore project" fails. The request sent to `PATCH https://cloud.appwrite.io/v1/projects/:project_id` with payload `{status: "act...
- how to access the value of account statu...
- I can't UNPAUSE my project with the free...
I received an email notifying me that my project had been paused due to inactivity, and the email included a link to "Restore project." However, that button red...