Fix file upload contents.