# Proposal: max and min size validation for \`FileField\`

**URL:** <https://forum.djangoproject.com/t/proposal-max-and-min-size-validation-for-filefield/43232>\
**Category:** Forms & APIs\
**Created:** [October 21, 2025, 10:07am UTC](https://forum.djangoproject.com/t/proposal-max-and-min-size-validation-for-filefield/43232 "2025-10-21T10:07:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![amirreza8002](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/amirreza8002/32/27683_2.png) [@amirreza8002](https://forum.djangoproject.com/u/amirreza8002)\
**Post date:** [October 21, 2025, 10:07am UTC](https://forum.djangoproject.com/t/proposal-max-and-min-size-validation-for-filefield/43232/1 "2025-10-21T10:07:36Z")

</div>

hi 👋  
i was thinking maybe we could add validation for max and min size of user uploaded files in `django.forms.fields.FileField`

i think i can implement this myself, if accepted

is this something you would want to see in django?

---

<div class="post-metadata">

**Author:** ![adamchainz](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/adamchainz/32/26_2.png) [@adamchainz](https://forum.djangoproject.com/u/adamchainz)\
**Post date:** [October 22, 2025, 5:08pm UTC](https://forum.djangoproject.com/t/proposal-max-and-min-size-validation-for-filefield/43232/2 "2025-10-22T17:08:56Z")

</div>

Yes, I’d like to see max file size at least. This could be through a field parameter (most convenient) or a validator (more flexible).

Looking around the docs, I couldn’t find any advice on setting a maximum file size, which I think is a bit odd!
