Fix file uploads