Subject, in the admin Django.
class FooModel(models.Model): image = models.FileField( upload_to="foo/path/images", validators=[здесь_попытка_в_валидатор] ) I wanted to use something like os.path.exists in the custom validator, but, firstly, I didn’t find how to distinguish the freshly stored file from the one already saved in the model, and secondly, I didn’t find the way to which the file ( .path in the validator it ignores the registered upload_to and gives to the crazy about MEDIA_ROOT).