文档库的不同文件夹中的相同文件 [英] same file in different folders of a document library

查看:78
本文介绍了文档库的不同文件夹中的相同文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个文档库,其中有10个文件夹,具体取决于dropdownlist的值,我正在将文件上传到特定文件夹中,我希望该文件名在文档库中应该是唯一的,即如果文件名"xyz"为存在于folder1中,则我们不应在其他任何文件夹中上传"xyz".plz建议方法

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

推荐答案

如何上传这些文件?如果通过代码执行操作,则需要在添加文件之前检查每个文件夹.否则,为该库创建一个异步事件接收并检查文件夹,并在必要时取消该事件.
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.


我正在通过Coading上传,我使用caml查询来查找名称存在于其中文档库的任何文件夹
i was uploading through coading,i used caml query to find it the name is existing in any of the folder of doc library


这篇关于文档库的不同文件夹中的相同文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆