title: Django upload failing on request data read error
body: <p>I've got a Django app that accepts uploads from <a href="http://www.uploadify.com/" rel="nofollow noreferrer">jQuery uploadify</a>, a jQ plugin that uses flash to upload files and give a progress bar.</p>
  
  <p>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.</p>
  
  <pre><code>exceptions.IOError
  request data read error
  File "/usr/lib/python2.4/site-packages/django/core/handlers/wsgi.py", line 171, in _get_post
      self._load_post_and_files()
  File "/usr/lib/python2.4/site-packages/django/core/handlers/wsgi.py", line 137, in _load_post_and_files
      self._post, self._files = self.parse_file_upload(self.META,     self.environ[\'wsgi.input\'])
  File "/usr/lib/python2.4/site-packages/django/http/__init__.py", line 124, in parse_file_upload
      return parser.parse()
  File "/usr/lib/python2.4/site-packages/django/http/multipartparser.py", line 192, in parse
      for chunk in field_stream:
  File "/usr/lib/python2.4/site-packages/django/http/multipartparser.py", line 314, in next
      output = self._producer.next()
  File "/usr/lib/python2.4/site-packages/django/http/multipartparser.py", line 468, in next
      for bytes in stream:
  File "/usr/lib/python2.4/site-packages/django/http/multipartparser.py", line 314, in next
      output = self._producer.next()
  File "/usr/lib/python2.4/site-packages/django/http/multipartparser.py", line 375, in next
      data = self.flo.read(self.chunk_size)
  File "/usr/lib/python2.4/site-packages/django/http/multipartparser.py", line 405, in read
      return self._file.read(num_bytes)
  </code></pre>
  
  <p>When running locally on the Django development server, big files work.<br>
  I've tried setting my <code>FILE_UPLOAD_HANDLERS = ("django.core.files.uploadhandler.TemporaryFileUploadHandler",)</code> in case it was the memory upload handler, but it made no difference.</p>
  
  <p>Does anyone know how to fix this?</p>