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
- Different appwrite IDs are getting expos...
File_URL_FORMAT= https://cloud.appwrite.io/v1/storage/buckets/[BUCKET_ID]/files/[FILE_ID]/preview?project=[PROJECT_ID] I'm trying to access files in my web app...
- Invalid document structure: missing requ...
I just pick up my code that's working a week ago, and now I got this error: ``` code: 400, type: 'document_invalid_structure', response: { message: 'Inv...
- custom domain with CloudFlare
Hi all, it seems that CloudFlare has blocked cross-domain CNAME link which made my app hostname which is in CloudFlare, unable to create a CNAME pointing to clo...