MHT file upload fails

201 views
Skip to first unread message

Sundar

unread,
Apr 13, 2012, 7:34:57 AM4/13/12
to web...@googlegroups.com
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: ''

Massimo Di Pierro

unread,
Apr 13, 2012, 9:32:36 AM4/13/12
to web...@googlegroups.com
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?
Reply all
Reply to author
Forward
0 new messages