[Solved] Django backend processing Base64 file upload error

Error information:

RequestDataTooBig Request body exceeded settings.DATA_UPLOAD_MAX_MEMORY_SIZE

reason:

Django’s default upload size is 2.5m, and the uploaded file is too large.

Solution:

Add the following line in the file settings.py of django.

DATA_UPLOAD_MAX_MEMORY_SIZE = 5242880  #default is 5M

 

 

Read More: