F
Filamentβ€’15mo ago
Atena.D

Remove uploaded files in Filament admin panel

Users can upload some images in my app but sometimes admin wants to remove the files from the application folder, how is that possible? I mean is that possible when admin clicks on the x button in filepond? but in that case the image isn't removed from the public folder in the storage.
2 Replies
Dan Harrin
Dan Harrinβ€’15mo ago
you could use a model observer to delete the image if it is removed from the model
Atena.D
Atena.Dβ€’15mo ago
Thanks πŸ‘