I've uploaded a document to SharePoint from code and along with couple of list item properties. I can see the document successfully uploaded with item column values.
In the next step, I've tried to upload the same document without list item properties from code flagging it to overwrite existing file. File was successfully uploaded and overwritten, however it has lost the list item column values provided in first step.
My target is to overwrite the file without disturbing existing list item metadata. This should surely be possible as SharePoint UI can upload/overwrite document without disturbing existing metadata.
Can you anybody let me know how SharePoint achieves this please? Cheers