Fix file upload