Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

multipart.File has no MIME type information #58

Open
srittau opened this issue Dec 21, 2022 · 3 comments
Open

multipart.File has no MIME type information #58

srittau opened this issue Dec 21, 2022 · 3 comments

Comments

@srittau
Copy link

srittau commented Dec 21, 2022

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.

@srittau
Copy link
Author

srittau commented Dec 21, 2022

Sorry, I meant to file this with Ariadne.

@srittau srittau closed this as not planned Won't fix, can't repro, duplicate, stale Dec 21, 2022
@rafalp
Copy link

rafalp commented Jul 21, 2023

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

@Kludex
Copy link
Owner

Kludex commented Feb 12, 2024

PR welcome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants