I have a models.FileField on my Admin-Page in a Model and would like to show an error to the user when he tries to upload an already existing file.
I already tried overriding get_available_name() on FileSystemStorage, but if I throw a ValidationError, it doesn’t get displayed nicely.
Is there any way to do this (easily)?
Provide a custom form to your ModelAdmin: