Fix file upload check error.