Fix file upload bug.