function UploadData() finished