Notify when media item is already in use upon deletion #598
Replies: 2 comments
-
|
I'm sure it can be done, but it's outside the scope of the plugin since it would require a way in the app itself to know if the media item is attached to anything or not. Ie, the media could be in a rich editor field, thus no real relationship or way to know if it's actually being used. |
Beta Was this translation helpful? Give feedback.
-
|
Yes, you can let users know when a file can’t be deleted because it’s being used somewhere else. Just check if the file is in use first—if it is, show a friendly warning like, ‘This file is currently in use and can’t be deleted.’ Filament makes it simple to add these kinds of notifications. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Is there a way to notify the user when a media item can not be deleted if in use?
Beta Was this translation helpful? Give feedback.
All reactions