I am creating Custom Menu Item in SharePoint 2016. A custom menu basically copies file from one location to another. I am using SP.MoveCopyUtil.copyfile()
method with the parameters:
- context
- sourceURL
- destinationURL
- overwrite - (boolean true/false)
The last parameter is not affecting the functionality of the method, even if I remove and execute the method it works.
The issue here is that I am not able to overwrite a file which already exists in the destination.