Fix upload refresh not working on Firefox