Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I'm writing now code agains the document library, that code adds files to the document library. Basically what I want to do is, when the particular file already exists in the document library with the same name, i don't want to get an error message, but i want to update it.

By updating I mean, i want to upload the new document instead of an old one, but not like deleting whole item and then uploading file and all metadata etc, i just want to update the file and also i have versioning on the document library so basically it should increase in version ...

Any idea how to do that? Because now when i programmatically try to upload a file with the same name I get an error ..

share|improve this question

1 Answer 1

up vote 0 down vote accepted

This link might help you. Refer it. http://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopmentlegacy/thread/c99e6161-66e9-4aea-953a-16f64f816cd7

share|improve this answer
    
Oh right, how could i forget about the overwrite ... thanks for the help –  Shkipper Jan 4 '13 at 14:33
    
yes thats right...always... –  Dhaval Kariya Jan 7 '13 at 4:59

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.