Django admin interface upload failing on request data read error

Posted by Jake on Stack Overflow See other posts from Stack Overflow or by Jake
Published on 2010-04-20T05:18:12Z Indexed on 2010/04/20 5:23 UTC
Read the original article Hit count: 329

Filed under:
|
|

Hi All, This is an updated version of an old question I asked. I've now done a lot more testing, plus the old question got hijacked.

I'm getting a request data read error when trying to upload files to the Django admin interface.

Files under about 150k work, but bigger files always fail and almost always at around 192k (that's 3 chunks) completed, sometimes at around 160k. The Exception I get is below.

File "/usr/lib/python2.4/site-packages/django/http/multipartparser.py", line 405, in read
   return self._file.read(num_bytes)

IOError: request data read error

I've tried Chrome and Firefox on Windows and Firefox on Mac - Same results.
I can upload to other sites so I don't think it's my connection.
I'm running python 2.4, django 1.1, mod_wsgi, on CentOS (a media temple DV server)
Locally it's fine (Django development server)

Everything I've found on this issue says it's a mod_python issue and that changing to mod_wsgi will fix it, but I am running mod_wsgi. Can anyone help?

© Stack Overflow or respective owner

Related posts about django

Related posts about django-uploads