finish the upload on server