When I am trying to upload an MHT file (single file holding all browser 
components: html, image etc.), I get an error. I observed it in old as well 
as new versions of web2py.

Are there prohibited extensions of files which cannot be uploaded?

Trace:

Traceback (most recent call last):
  File "E:\web2py1.99.7Source\gluon\main.py", line 447, in wsgibase
    parse_get_post_vars(request, environ)
  File "E:\web2py1.99.7Source\gluon\main.py", line 277, in parse_get_post_vars
    dpost = 
cgi.FieldStorage(fp=request.body,environ=environ,keep_blank_values=1)
  File "E:\Python27\lib\cgi.py", line 508, in __init__
    self.read_multi(environ, keep_blank_values, strict_parsing)
  File "E:\Python27\lib\cgi.py", line 637, in read_multi
    environ, keep_blank_values, strict_parsing)
  File "E:\Python27\lib\cgi.py", line 508, in __init__
    self.read_multi(environ, keep_blank_values, strict_parsing)
  File "E:\Python27\lib\cgi.py", line 622, in read_multi
    raise ValueError, 'Invalid boundary in multipart form: %r' % (ib,)
ValueError: Invalid boundary in multipart form: ''



Reply via email to