# django.core.exceptions.RequestDataTooBig: Request body exceeded settings.FILE_UPLOAD_MAX_MEMORY_SIZE.

- **ID:** `python/django-request-body-too-large`
- **Domain:** python
- **Category:** data_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

Uploaded file exceeds the in-memory upload limit.

## Version Compatibility

| Version | Status | Introduced | Deprecated |
|---------|--------|------------|------------|
| 3.x | active | — | — |

## Workarounds

1. **** (90% success)
   ```
   Set FILE_UPLOAD_MAX_MEMORY_SIZE = 10485760 (10MB) in settings.py.
   ```
2. **** (85% success)
   ```
   Use FILE_UPLOAD_HANDLERS to stream large files to disk: ['django.core.files.uploadhandler.TemporaryFileUploadHandler']
   ```

## Dead Ends

- **** — Increasing only DATA_UPLOAD_MAX_MEMORY_SIZE doesn't affect file upload limit. (60% fail)
- **** — Setting FILE_UPLOAD_MAX_MEMORY_SIZE=0 disables limit but can cause memory issues. (40% fail)
