Replace a SharePoint File Without Losing Metadata or Version History
Question details
Replace or update a SharePoint document while preserving its existing metadata and version history.

- Product
- Microsoft SharePoint
- Device & OS
- not provided
- Scenario
- A user needs to update a document in a SharePoint library, possibly after editing a local copy.
- Observed behavior
- Deleting the original and uploading a separate file can create a new library item without the original metadata or version history.
Open the document library and check that you have permission to edit the file. In Library settings, check Versioning settings and note any required metadata columns or checkout requirements.
Edit and save the existing SharePoint document
Use this method when you can make the changes in the existing document without replacing it with a separate file.
In the SharePoint document library, select the document name and open it in the browser or choose Open in app.
Edit the document and save it back to the same SharePoint location. If AutoSave is unavailable, use File > Save.
Return to the library, select the file, and open its Details pane to check required metadata. Open the file's More options menu and select Version history to review the saved version.

Upload a replacement to the existing SharePoint file
Use this method when you have an offline-edited copy that must replace the file already in the library.
Edit Office documents with WPS Office
WPS Office is a free, lightweight alternative with a familiar interface for editing Office documents and moving between compatible formats. Use SharePoint's own controls to replace files and manage their metadata and version history.

Frequently Asked Questions
Why should I avoid deleting the original SharePoint file?
Deleting it and uploading a separate file can create a new library item without the original metadata or version history. Edit the existing document or use the replacement prompt for a matching file instead.
How do I check a SharePoint file's version history?
In the document library, select the file, open its More options menu, and choose Version history. Previous versions are available according to the library's versioning settings.
Will every metadata value stay unchanged after replacement?
Check the file's Details pane after replacing it, especially required columns. Automatic fields such as Modified and Modified By normally change when the file is updated.
What if SharePoint does not offer to replace the file?
Confirm that the local file has the same name and extension and that you are uploading to the same folder. Also check your edit permission and any checkout requirements; ask the library owner if the replacement option is still unavailable.




