completed  uploading function