Fix file uploading