2

WheneverI try to upload an mp3 file through a CMS I built with the Django Admin contrib pacakage, the server takes a couple minutes, then gives me a "Connection was reset" error.

I'm running Django on a CentOS server using NGINX which is proxying Apache with mod_wsgi for python. Could this be a server settings issue?

3
  • how did you solve this problem Commented Jan 12, 2010 at 5:37
  • i don't think i did at the time. but since then, i've discovered timeout and filesize limits in the nginx and apache confs. definitely check those. Commented Jan 12, 2010 at 18:54
  • Might be good if you've solved the issue now to post a self-answer to help others. Commented May 24, 2013 at 17:23

1 Answer 1

2

The problem is in the max body size

If you are using NGinx, add client_max_body_size 35m

And if you are using Apache you have to increase this size too.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.