I’m encountering an issue where Django raises a DATA_UPLOAD_MAX_MEMORY_SIZE error during file uploads, even though I haven’t explicitly set FILE_UPLOAD_MAX_MEMORY_SIZE. Here’s my setup:
- No explicit
FILE_UPLOAD_MAX_MEMORY_SIZEin settings. - Error occurs in Sentry but references
DATA_UPLOAD_MAX_MEMORY_SIZE.
Questions:
- Why does Django check
DATA_UPLOAD_MAX_MEMORY_SIZEfor file uploads instead ofFILE_UPLOAD_MAX_MEMORY_SIZE? - Are there differences in behavior between Django 1.11 and 4.0?
- Should both settings always be configured together?
Any insights would be appreciated!