E
E
Egegey2021-09-28 18:23:42
Django
Egegey, 2021-09-28 18:23:42

Why won't Django allow you to upload a large file?

According to this setting
https://docs.djangoproject.com/en/3.0/ref/settings...
you can specify the maximum request size without taking into account uploaded files.
However, in my case, the uploaded files are also taken into account in the calculation of the allowable size and an error occurs during the upload.
Tell me why the error occurs? Am I misunderstanding the purpose of this parameter?
Is it possible to fix it without increasing the value of the DATA_UPLOAD_MAX_MEMORY_SIZE parameter in the project settings
6153329b235ef478486687.png
6153334d6d302416499867.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Egegey, 2021-09-28
@Egegey

I use DjangoSilk, the reason for the error is in it. After disabling everything works
https://github.com/jazzband/django-silk/issues/162

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question