#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
Note:
See TracTickets
for help on using tickets.
duplicate #ticket36685