Return `null` if extension or MIME type doesn't exist