Skip to content

Add content_type #33

@jayvdb

Description

@jayvdb

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions