Have you tried this setting? https://docs.djangoproject.com/en/2.1/ref/settings/#data-upload-max-memory-size
Aldian Fazrihady On Sat, Mar 16, 2019 at 6:53 AM Manas Nikam <[email protected]> wrote: > Check Django settings for maximum file upload size. Change it > > On Sat, Mar 16, 2019, 4:20 AM <[email protected]> wrote: > >> Hey Django experts! >> >> My team has been getting 413 errors whenever we try and upload large >> files to our Django back-end: 413 Payload too large >> >> We can't exactly pin down the maximum acceptable file size - it seems to >> vacillate in the 1-3MB range. >> >> Things we have excluded: >> >> - >> >> It's not a webserver configuration issue, because we're running the >> Django server locally (without a webserver) >> - >> >> We believe it's not an app server configuration issue, because this >> happens on multiple app servers (./manage.py runserver and daphne -p >> 8000 topknott.asgi:application) >> - >> >> It's not an issue with the field on the Django model, which looks >> normal: photo = models.ImageField(blank=True) >> >> Can anyone spot what we're missing? >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Django users" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> To post to this group, send email to [email protected]. >> Visit this group at https://groups.google.com/group/django-users. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/django-users/6cb0dfd7-f4f4-4d9d-b907-f0c792019187%40googlegroups.com >> <https://groups.google.com/d/msgid/django-users/6cb0dfd7-f4f4-4d9d-b907-f0c792019187%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> For more options, visit https://groups.google.com/d/optout. >> > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at https://groups.google.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/CAF%2BYYc6N3FvFRmQGbjoM2DUjQuLom0%3DTE6SWEndCYn1av2%2BLPA%40mail.gmail.com > <https://groups.google.com/d/msgid/django-users/CAF%2BYYc6N3FvFRmQGbjoM2DUjQuLom0%3DTE6SWEndCYn1av2%2BLPA%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAN7EoAa8zYzEh7Z8d8fa2%3D7Ynzr1XQZhX10kBr%3DHb2bjpjcWdg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.

