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

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

## Root Cause

Uploaded file size exceeds the limit defined in DATA_UPLOAD_MAX_MEMORY_SIZE.

## Version Compatibility

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

## Workarounds

1. **** (90% success)
   ```
   Increase DATA_UPLOAD_MAX_MEMORY_SIZE = 10485760 (10MB) in settings.py.
   ```
2. **** (85% success)
   ```
   Use streaming uploads or chunked uploads to handle large files.
   ```

## Dead Ends

- **** — Setting DATA_UPLOAD_MAX_MEMORY_SIZE=0 disables the limit but can cause memory exhaustion. (50% fail)
- **** — Only increasing FILE_UPLOAD_MAX_MEMORY_SIZE doesn't affect request body limit. (70% fail)
