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
- Problem with Google Workspace at DNS Rec...
Hello, I bought a domain at Namecheap, and Google Workspace used to work there, but now that I switched from Custom DNS to Appwrite's nameservers, it doesn't w...
- change role of a team member in Appwrite
It's not possible to add/change roles of a team meber in Appwrite Frontend. When you click on a member of a team you get forwarded to the configuration page of ...
- Session not found. Please run appwrite l...
I have encounter an issue with appwrite CLI They asking for a login session but in the doc, it’s mention that only setup client with endpoint / api key is enou...