Disable the Upload Multiple Document option in Document Library

So many people trying to enable and you want to disable... 

<1>
Central Administration > Application Management > Authentication Providers > Edit Authentication
Put "Enable Client Integration?" as No.
Client Integration: Disabling client integration will remove features which launch client applications. Some authentication mechanisms (such as Forms) don't work well with client applications. In this configuration, users will have to work on documents locally and upload their changes.  


With this you will disable activeX options and others like connect to outlook and connecto to Access. 

<2>
Open sharepoint designer, open you sharepoint site, open you list or document library, open upload.aspx file and hide code that call multiple upload link.
Edit the file upload page in FrontPage.
Switch to Code view.
Modify the function EnsureUploadCtl to return 0;.
function EnsureUploadCtl()
{
 return 0;
}

<3>
The quickest way to hide multiple upload option from users for ALL document library is through css. 
C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\LAYOUTS\1033\STYLES/Core.css
Add #ctl00_PlaceHolderMain_ctl01_ctl02_UploadMultipleLink { display: none } to your custom css will hide the Multiple Upload link.

I am not too sure about the scenario that you may need. But just for a fun purpose i though if we have multiple file upload menu then what to do with single file upload menu, anyways you can upload the single file with multiple file upload menu.

I though let me hide that manu just for a fun purpose.

(1) Add content editor webpart on AllItems.aspx of your document library.
(3) Open Source editor
(4) Paste the following lines of code and see, your single upload will get disabled

<script type="text/javascript">
function GetElementByText(tagName, title)
{
var a = document.getElementsByTagName(tagName);

for (var i=0; i < a.length; i++)
{
if (a[i].text)
{
if (a[i].text === title)
{
return a[i];
}
}
}

return null;
}

if (window.onload)
{
var oLoad = window.onload;
window.onload = function bodyLoad()
{
oLoad();

var o = GetElementByText("ie:menuitem","Upload Document");
if (o)
{
o.disabled = true;
}
}
}
</script>

That's it. Your job is done.

<5>
The 'Toolbar Manager' feature on CodePlex<http://www.codeplex.com/features>

转载于:https://www.cnblogs.com/starcrm/archive/2009/09/07/1561852.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值