Fix upload for IE < 9