Disable Drag and Drop files option in SharePoint 2013 Document Library

1.Open the document library,edit it and add script editor web part to it.

2.Add the below Code to script editor web part.

<script type="text/javascript">
// Stop Drag & Drop 
ExecuteOrDelayUntilScriptLoaded(function () { 
g_uploadType = DragDropMode.NOTSUPPORTED; 
<code>SPDragDropManager.DragDropMode = DragDropMode.NOTSUPPORTED; }, "DragDrop.js");
</script>

<style>
#Hero-WPQ2 {
display: none ! important;
}

</style>

3.It should work fine now.

Comments

Popular posts from this blog

How to Customize exported excel's cell background color in Datatables

Customizing SharePoint list and implementing Quick search using jQuery

Populate dropdown using jquery ajax in SharePoint