hi im using method for copy or move file on sharepoint. but i want to ask how to implement when it's duplicated it automatically replace and update version?
i've been try with this function but it's always
Microsoft.SharePoint.Client.ServerException: 'The destination file already exists
public void CopyFile(string SrcUrl, string DestUrl)
{
MoveCopyOptions option = new MoveCopyOptions();
option.KeepBoth = false;
MoveCopyUtil.CopyFile(this.clientContext,SrcUrl,DestUrl,true,option);
this.clientContext.ExecuteQuery();
}
And my src
http://win-e636ggi1v13:55555/sites/srsrms/SRS%20Documents/Finance/fredytest/License%20Management.csv
and my Destination file
http://win-e636ggi1v13:55555/sites/srsrms/SRS%20Documents/Finance/paidi/Finance%20Folder/License%20Management.csv