set error invalid file type