You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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 asapplication/vnd.open-api+yaml
The text was updated successfully, but these errors were encountered: