multipart.File has no MIME type information
srittau opened this issue · comments
Sebastian Rittau commented
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.
Sebastian Rittau commented
Sorry, I meant to file this with Ariadne.
Rafał Pitoń commented
@srittau this is valid feature requirement for python-multipart, which is Ariadne's dependency for files upload. Please reopen.
Marcelo Trylesinski commented
PR welcome.