Add callback upload api for both json format and url format.