Click here to Skip to main content
15,898,222 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have one document library in that i m having 10 folders depending on the value of dropdownlist i am uploading a file in a particular folder,i want that filename should be unique within the document library i.e if a file name "xyz" is present in folder1 then we should not be able to upload"xyz" in any other folder .plz suggest the ways
Posted

How are you uploading these files? If you are doing via code then you would need to check each folder before adding the file. Otherwise, create an asynchronous event receive for the library and check the folders and cancel the event if necessary.
 
Share this answer
 
i was uploading through coading,i used caml query to find it the name is existing in any of the folder of doc library
 
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