Sadly Twisted just calls into cgi.parse_multipart and so it is in fact ignored. You might be able to re-parse the request body (request.content.seek(0); request.content.read()) with something like <https://docs.python.org/2.7/library/email.mime.html#email.mime.multipart.MIMEMultipart> or <https://github.com/mailgun/flanker> to extract more information about the MIME.On Aug 11, 2016, at 8:55 AM, Burak Arslan <burak.arslan@arskom.com.tr> wrote:Hello All,
You can find a sample HTTP POST request using HTTP multipart/form-data at the end of this message.
The server that handles this request is using twisted so I end up with a Request object. Is there a way I can extract the file name ("image008.jpg") from this stream? I'm looking at the source of cgi.parse_multipart() and it seems to be ignored.