Answer the question
In order to leave comments, you need to log in
Nginx + uWSGI + Django. How to upload files larger than 2MB?
Hello,
The server is running on Ubuntu on DIgitalocean
Problem 1
When uploading photos to the site (via POST method), photos of 2 mb in size are loaded in a minute or so, which is already strange =(
Problem 2
When uploading photos larger than 2 mb, the download is in progress (I see status in chrome at the bottom of the screen), reaches 100% and then nothing happens
.
Answer the question
In order to leave comments, you need to log in
The solution was found. I logged everything, everything worked ok. Everything came to view junga. And there I found this code
Actually, this was the problem. Lesson - it is necessary to catch exceptions and process them normally.
client_max_body_size should be enough.
Does the request reach Dzhanga at all?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question