done the authcode function ,begin to code the image ajax upload