Delete File Confirmation
Hi - is it possible to have a confirmation before removing a file that has been uploaded. I can hide the delete button completely by calling
->deletable(false).
However, I have a scenario where users can delete files, but it would be nice to have a confirmation before doing so.
Thanks4 Replies
Did you try?
->deleteAction(fn ($action) => $action->requiresConfirmation())->deleteAction() doesn't seem to be a valid method on the file upload componentSorry my bad,
I just check what can i do if i have this case. I did this for single FileUpload quickly;
Need more practice for multiple files
Yes whilst this works for individual files, it's not great for multiple files. I will update if I find a better solution