﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
30669	Can FILE_UPLOAD_MAX_MEMORY_SIZE be set to None?	Lincoln	nobody	"The settings reference for [https://docs.djangoproject.com/en/dev/ref/settings/#std:setting-FILE_UPLOAD_MAX_MEMORY_SIZE FILE_UPLOAD_MAX_MEMORY_SIZE] doesn't say anything about if this setting can be set to `None`.

The first usages of it in [https://github.com/django/django/blob/7f19e3713598a37b0809b5434114140170d12e34/django/core/handlers/asgi.py#L180 asgi.py] does a `is None` check on it, suggesting it can be `None`.

But the second usage of it in [https://github.com/django/django/blob/b9cf764be62e77b4777b3a75ec256f6209a57671/django/core/files/uploadhandler.py#L163 uploadhandler.py] does a `<=` comparison which raises a `TypeError` when it is `None`, suggesting it shouldn't be `None`

I would be happy to submit a patch if someone with more knowledge of Django can answer the question."	Bug	closed	HTTP handling	dev	Normal	fixed	FILE_UPLOAD_MAX_MEMORY_SIZE, None, settings	Andrew Godwin	Accepted	0	0	0	0	0	0
