@staticmethod
def __get_mime_type_from_ext(extension: str):
    """
        Takes a file extension, minus the '.', and returns the corresponding MimeType for the given extension.
        :param extension: the file extension
        :type extension: str
        :return the mime type
        :rtype str
        """
    switcher = {'txt': 'text/plain', 'ini': 'text/plain', 'sln':
        'text/plain', 'cs': 'text/plain', 'js': 'text/plain', 'config':
        'text/plain', 'vb': 'text/plain', 'jpg': 'image/jpeg', 'jpeg':
        'image/jpeg', 'bmp': 'image/bmp', 'csv': 'text/csv', 'doc':
        'application/msword', 'docx':
        'application/vnd.openxmlformats-officedocument.wordprocessingml.document'
        , 'gif': 'image/gif', 'html': 'text/html', 'pdf': 'application/pdf',
        'png': 'image/png', 'ppt': 'application/vnd.ms-powerpoint', 'pptx':
        'application/vnd.openxmlformats-officedocument.presentationml.presentation'
        , 'xls': 'application/vnd.ms-excel', 'xlsx':
        'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
        'xml': 'application/xml', 'zip': 'application/x-zip-compressed',
        'wav': 'audio/wav', 'eml': 'message/rfc822', 'mp3': 'audio/mpeg',
        'mp4': 'video/mp4', 'mov': 'video/quicktime'}
    return switcher.get(extension, 'application/octet-stream')
