[repo] use ajax to fetch url for file upload/update