Kludex / python-multipart

A streaming multipart parser for Python.

Home Page:https://kludex.github.io/python-multipart/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

multipart.File has no MIME type information

srittau opened this issue · comments

Unfortunately, multipart's File class seems to have a serious regression compared to cgi's FieldStorage class: Where FieldStorage.type contained the declared MIME type of the uploaded file (or None if not given), File does not seem to have this information. This makes is basically impossible to download uploaded files while keeping the file type intact.

Sorry, I meant to file this with Ariadne.

@srittau this is valid feature requirement for python-multipart, which is Ariadne's dependency for files upload. Please reopen.

PR welcome.