Fix file uploading.