Skip to content

Add content_type #33

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

Open
jayvdb opened this issue Aug 25, 2020 · 0 comments
Open

Add content_type #33

jayvdb opened this issue Aug 25, 2020 · 0 comments

Comments

@jayvdb
Copy link
Contributor

jayvdb commented Aug 25, 2020

https://github.com/victor-o-silva/db_file_storage captures the content_type from the File object, and stores it as part of the file.

Some other binary database files also (optionally) use "magic" to detect the mime type, such as the wrapper https://pypi.org/project/python-magic/ .

Currently the code only uses mimetypes in the views to detect the mime-type based on the name, but that doesnt allow for more explicit control , such as application/vnd.open-api+yaml

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

No branches or pull requests

1 participant