Python / Django — MIME Type Content Type

I just used the mimetypes python standard library to guess filetypes via file names.

It assumes the user followed naming conventions and does not attempt to read the data.

Leave a Comment