Hide "Upload Multiple" toolbar menu item

Came across a requirement where we needed to hide the "Upload Multiple" toolbar menu item from the default view of document libraries.

Observed that using the "HideCustomAction" section in a custom feature file doesn't work for this.

Workaround - Edit the DefaultTemplate.ascx file which renders the menu

  • Go to the 12\Template\ControlTemplates folder
  • Take a copy of the DefaultTemplate.ascx file and rename the file as DefaultTemplate.ascx.backup (just to ensure a smooth rollback)
  • Edit the file in notepad
  • Remove the following section from the file,-  

 <SharePoint:MenuItemTemplate
 ID="MultipleUpload"
 Text="<%$Resources:wss,ToolBarMenuItemMuliUpload%>"
 Description="<%$Resources:wss,ToolBarMenuItemMuliUploadDescription%>"
 Sequence="200"
 ImageUrl="/_layouts/images/MenuUploadMultiple.gif"
 HiddenScript="!browseris.ie55up"
 UseShortId="true"
 runat="server"/>

  • Save the changes to the file.
  • Do an IIS Reset