Click here to Skip to main content
15,939,065 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have a document library,i want to upload the file with same name as that of the previously uploaded file name,how can i do it? i want both thhe files,tried versioning but it replaces the older one,any solution?

As you have found out SharePoint sees the files as the same, based on the name, and thinks it is a new version of the same document. There is no work around because SharePoint needs to create a unique Fileref to produce links. If two files had the same name how would it, or users, know which one to choose?
Share this answer
supermario ballotelli 26-Mar-12 2:31am    
Ya thats what the case was,even if i enter different columns value but have same file,it will treat the file as duplicate entry,so file name is like a primary key in db
You cant have same files in a folder of doc library,you can have same file in different folders of same document library,so the only soln is to give alert to the user that file is already existing
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900