#2070: [patch] Large streaming uploads
--------------------------------------+-------------------------------------
 Reporter:  [EMAIL PROTECTED]  |        Owner:  jacob   
     Type:  enhancement               |       Status:  assigned
 Priority:  normal                    |    Milestone:          
Component:  Core framework            |      Version:          
 Severity:  normal                    |   Resolution:          
 Keywords:  streaming, upload, large  |  
--------------------------------------+-------------------------------------
Comment (by [EMAIL PROTECTED]):

 Something ate line breaks, apparently.
 
 {{{
 Unhandled exception in thread started by <bound method ThreadPool._worker
 of <flup.server.threadpool.ThreadPool object at 0x715270>>
 Traceback (most recent call last):
   File "/opt/local/www/data/flup/server/threadpool.py", line 103, in
 _worker
     job.run()
   File "/opt/local/www/data/flup/server/fcgi_base.py", line 642, in run
     self.process_input()
   File "/opt/local/www/data/flup/server/fcgi_base.py", line 678, in
 process_input
     self._do_params(rec)
   File "/opt/local/www/data/flup/server/fcgi_base.py", line 777, in
 _do_params
     self._start_request(req)
   File "/opt/local/www/data/flup/server/fcgi_base.py", line 761, in
 _start_request
     req.run()
   File "/opt/local/www/data/flup/server/fcgi_base.py", line 563, in run
     self.server.error(self)
   File "/opt/local/www/data/flup/server/fcgi_base.py", line 1157, in error
     req.stdout.write('Content-Type: text/html\r\n\r\n' +
   File
 
"/opt/local/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/cgitb.py",
 line 158, in html
     dump.append('%s&nbsp;= %s' % (name, pydoc.html.repr(value)))
   File
 
"/opt/local/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/pydoc.py",
 line 360, in repr
     return Repr.repr(self, object)
   File
 
"/opt/local/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/repr.py",
 line 24, in repr
     return self.repr1(x, self.maxlevel)
   File
 
"/opt/local/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/pydoc.py",
 line 367, in repr1
     return self.escape(cram(stripid(repr(x)), self.maxother))
   File "/opt/local/lib/python2.4/site-
 packages/django/core/handlers/wsgi.py", line 65, in __repr__
     return '<WSGIRequest\nGET:%s,\nPOST:%s,\nCOOKIES:%s,\nMETA:%s>' % \
   File "/opt/local/lib/python2.4/site-
 packages/django/core/handlers/wsgi.py", line 101, in _get_post
     self._load_post_and_files()
   File "/opt/local/lib/python2.4/site-
 packages/django/core/handlers/wsgi.py", line 79, in _load_post_and_files
     self._post, self._files = http.parse_file_upload(self)
   File "/opt/local/lib/python2.4/site-packages/django/http/__init__.py",
 line 82, in parse_file_upload
     return req.parse_file_upload(req)
   File "/opt/local/lib/python2.4/site-
 packages/django/middleware/upload.py", line 83, in
 parse_streaming_file_upload
     upload_state = req.upload_state(req)
   File "/opt/local/lib/python2.4/site-
 packages/django/middleware/upload.py", line 126, in __init__
     self.state = {'size': int(req.header_dict.get('content-length')),
 TypeError: int() argument must be a string or a number
 }}}

-- 
Ticket URL: <http://code.djangoproject.com/ticket/2070>
Django <http://code.djangoproject.org/>
The web framework for perfectionists with deadlines.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates
-~----------~----~----~----~------~----~------~--~---

Reply via email to