i am trying to implement the html5 multiple file upload with progress
http://webreflection.blogspot.com/2009/03/safari-4-multiple-upload-with-progress.html
to web2py, it comes with example on php.

but i run into some parsing error from python's cgi library. is it
possible to turn off auto variable parsing on a specific controller
function so i can read header and wsgi_input directly?


this is the error i got:

Traceback (most recent call last):
  File "gluon/main.py", line 337, in wsgibase
    parse_get_post_vars(request, environ)
  File "gluon/main.py", line 224, in parse_get_post_vars
    dpost =
cgi.FieldStorage(fp=request.body,environ=environ,keep_blank_values=1)
  File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/cgi.py", line 525, in __init__
    self.read_multi(environ, keep_blank_values, strict_parsing)
  File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/cgi.py", line 641, in read_multi
    raise ValueError, 'Invalid boundary in multipart form: %r' % (ib,)
ValueError: Invalid boundary in multipart form: ''

Reply via email to