none
Hide or disable upload button and drag files here to upload

    Question

  • Please advise on how I can remove/hide the upload button, the columns and the "drag files here to upload" on a document library that has been inserted into a webpage? I only want people to click the new button so they can download a template. See below image.

    Thursday, February 11, 2016 1:07 AM

All replies

  • Hello CharlieEdmonds,

    Follow these steps to hide the upload button.

    1.  Open your site (if your document library is being displayed in a webpart) or open up your document library using SharePoint Designer.  Make sure that within SharePoint Designer the view is set for Split view (Code and Design) so you can see the Code and Design of your SharePoint site.
    2.  Click and highlight the ListViewWebPart for your document library in design view, and then “right click” and select “Convert to XSLT Data View.
    3.  Your site will re-render in the design view and you will now see the ListViewWebPart converted to a XSLT Data View Web Part with gridlines.
    4.  Click and highlight the Upload button on the design view, you will now see the code for the upload button highlighted in the code view.  You should see something like this:

    <td class=”ms-toolbar” nowrap=” “>
        <SharePoint:UploadMenu runat=”server” />
    < /td>

    5.  To hide the UploadMenu button all you have to do is add this code in the <td> tag right after nowrap= ” ”

    style=”

    6.  So your final code should look like this.

    <td class=”ms-toolbar” nowrap=” ” style=”visability:hidden” />
        <SharePoint:UploadMenu runat=”server” />
    < /td>

    7.  Now you can do this for any other button you would like.
    8.  After making the changes you will see the changes re-render and the Design View will reflect the changes.
    9.  Save your site in SharePoint Designer, and then go back to your site on SharePoint.
    10.  You should now see the Upload button is now hidden.

    Sources -

    http://shipoint.com/2010/10/02/hiding-the-upload-button-on-sharepoint-document-library/

    http://kishansharepoint.blogspot.com/2012/08/disable-upload-button-of-document.html

    ---------------------------------------------------------------------------

    Please do not forget to mark this as answer if it was helpful for you

    Thursday, February 11, 2016 1:24 AM