I’m looking to make some additions to the fileuploader. Here are the things I want to do.
- Show the uploaded date in the list
- Add a button to each item in the list that allows a file to be “archived”
- A bulk delete button to archive more than one file at a time
My UI would look something similar to what’s shown below.
My first question is. Is this even possible with how the fileuploader works in v2?
For the archiving of files, my idea is to have a separate relation defined on the model, and when a file is archived , update the field column for it in the database to match the new relation name.
This would be handled by an ajaxHandler on my controller. And a similar technique would be used for the Archive Selected button.
My real issue is how do I get the buttons to be displayed in the list? Are there any events that I can hook into to achieve this or something similar?
Once a file is archived, I’d want it to be removed from the active list, and moved over to the archived list.
Hope all this makes sense, and I’ll appreciate any help that I can get on this.