F
Filamentβ€’2y 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β€’2y ago
you could use a model observer to delete the image if it is removed from the model
Atena.D
Atena.DOPβ€’2y ago
Thanks πŸ‘
Want results from more Discord servers?
Add your server