Ich Neumon <ichneumo...@gmail.com> added the comment:

A slight update for my workaround for the above with the following code:

if not filename:
   ct = part.get("Content-Type")
   if ct:
      m = re.compile('name=\"?(\S+)\"?').search(ct, 1)
      if m: filename = m.group(1)

I've added ? operators to the double-quotes, and changed the case in the 
part.get. However, there may be good reasons as to why part.get needs to be 
case-sensitive. Not my area of expertise though.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue1403349>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to