I'm trying to find out how to change the file extension of a file in a document library in SharePoint, so that a newer version with a different extension can be uploaded without a separated copy being created (e.g. suppose I want to replace a .doc file with .zip).
Looks like you can write some codes to workaround but I feel there's gotta be a simpler way to do a simple task like this.
You could change the extension by opening the library in windows explorer.
Actions - Open In Windows Explorer
Then ensure that in your file view settings you don't have 'Hide Extensions for known file types' enabled.