Return nil is absolute path doesn't match mime type