This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author v+python
Recipients orsenthil, patrick.vrijlandt, r.david.murray, v+python
Date 2012-08-10.22:33:20
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1344638001.05.0.81254155697.issue15564@psf.upfronthosting.co.za>
In-reply-to
Content
So the issue you perceive is that a correctly MIME-typed .mht file has a MIME type of multipart/related -- but that for the purposes of uploading the file, you don't want to treat it as that MIME type, but rather as an opaque data file.

Just give it a different MIME type at the time of upload, like application/octet-stream. That is appropriate, if your application wants to treat the data as an opaque data stream.

But, you say, none of the browsers support user-specified or user-selectable MIME types, but rather they infer the MIME type from the file extension.  So that sounds like a bug in the browsers... but also gives an out... change the name of the file before uploading it.

The only bug I see here is your comment that the parsing fails.
History
Date User Action Args
2012-08-10 22:33:21v+pythonsetrecipients: + v+python, orsenthil, r.david.murray, patrick.vrijlandt
2012-08-10 22:33:21v+pythonsetmessageid: <1344638001.05.0.81254155697.issue15564@psf.upfronthosting.co.za>
2012-08-10 22:33:20v+pythonlinkissue15564 messages
2012-08-10 22:33:20v+pythoncreate