Fix upload file headers