Fix file upload problem