Can I update a filename once a file is uploaded in a bucket
I cannot see anythig like that in docs.
Not for now, the only solution would be to upload a new one.
Is there a plan to support something like this
I didn't find any mentaion of that being on some roadmap. You can create a feature request for it though.
The reason is not available to my opinion is because when dealing with Appwrite's Storage there's no meaning for the file name as the actions of
- Accessing
- Previeweing
- Deleting Are sets by ID.
BTW what was your use-case that you needed to have the rename option?
@Binyamin I want to keep some files as archived. But I can't store any metadata in buckets so I want to give archived files special prefix to differentiate them
Understood. Then for now, only opening a feature request.
For a workaround, you can create another collection called archive in which you can add documents holds the storage files that have been archived.
And,
If you want to make more flexible, you can create files collection contains each storage file meta data
And, when the file is being archived move the document from files to c.
Thanks makes sense I think adding metadata to files can be a great feature
[Solved] Update filename once uploaded
Recommended threads
- Realtime for files() works almost well, ...
I have been trying to make use of realtime, today (14.03.26) I have pulled all the latest versions of docker images, and sdk available. Whats working: - Conn...
- Function issue
Hi,idk whats wrong with my function but i made some changes to the env var and made sure they saved then i redeployed it,but then after it redeeployed it asked ...
- Function issue
Hi,idk whats wrong with my function but i made some changes to the env var and made sure they saved then i redeployed it,but then after it redeeployed it asked ...