
While working on a web application that accepts file uploads as an input, I found myself working pretty extensively with many different MIME types. Also known as Media types, a MIME type is a two part identifier that simply indicates the nature and format of a document, file, or assortment of bytes. While trying to make the web app secure, I started using the MIME type to verify that the file being uploaded was safe and able to be processed.