fixed upload cookie.