Opened 7 hours ago

Last modified 5 hours ago

#36685 assigned New feature

`max_size` and `min_size` validation for `FileField`

Reported by: amirreza Owned by: amirreza
Component: Forms Version: dev
Severity: Normal Keywords: form FileFIeld files
Cc: amirreza Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: yes UI/UX: no

Description

hi
as disccussed in forum, i think a max_size and min_size validation could be a good addition to django
or at least max_size

should mention i can do this one myself

i'm fine by doing it as a paarameter in FormField, or as a validator function
so if you have a preference, please do tell

should mention anything discussed here also applies to ImageField and anything else inheriting from FormField

Change History (1)

comment:1 by Antoliny, 5 hours ago

Thank you for suggesting this improvement.
However, I believe there was a similar issue raised before, maybe a duplicate ? #34700, #34263, #33942

Note: See TracTickets for help on using tickets.
Back to Top