Removing Single File Upload Menu From Document Library Toolbar MOSS 2007
Posted February 23, 2008on:
Well, not exactly removing, just crippling it so it won’t function. Hahah…
It all began with a guy in another department who got this persistent demand of getting rid of the single file upload button from a SharePoint document library upload menu. “We can upload single file from the multiple one, no need to have a single one.” He claimed. Hahah..
What I did was described in Lazy 101; detect the Upload Menu by it’s many possible identifier (in this case i use its’ “text” attribute), and brutally disabled it. I cunningly inserted a content editor webpart in the page where the doclib tool bar was visible, and chuckled in an insane glee. Mwhuahahahhahuahahahah …
The script is as below:
[Update] Hey, guess what, a very kind guy has created a better tool for this (he’s even “featurize” it), check it here