This is either a bug in cgi.FieldStorage or in the web server. Can you send me one such file so I can look into it?
On Friday, 13 April 2012 06:34:57 UTC-5, Sundar wrote: > > 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: '' > > > >