Opened 24 hours ago

Closed 22 hours ago

Last modified 22 hours ago

#36684 closed New feature (duplicate)

`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, 22 hours ago

Resolution: duplicate
Status: assignedclosed

duplicate #ticket36685

Last edited 22 hours ago by Antoliny (previous) (diff)
Note: See TracTickets for help on using tickets.
Back to Top