Defaulting mime type to application/octet-stream if it could not be determined with mime-magic.