fixed xhr2 upload bug