mirror of
https://github.com/django/django.git
synced 2025-08-04 02:48:35 +00:00
Fixed #28165 -- Ignored case in FileExtensionValidator's allowed_extensions.
This commit is contained in:
parent
b137add6cf
commit
681d2599ee
3 changed files with 12 additions and 0 deletions
|
@ -286,6 +286,7 @@ to, or in lieu of custom ``field.clean()`` methods.
|
|||
Raises a :exc:`~django.core.exceptions.ValidationError` with a code of
|
||||
``'invalid_extension'`` if the extension of ``value.name`` (``value`` is
|
||||
a :class:`~django.core.files.File`) isn't found in ``allowed_extensions``.
|
||||
The extension is compared case-insensitively with ``allowed_extensions``.
|
||||
|
||||
.. warning::
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue