Fixed minor bugs for upload svc call