Disable Drag And Drop

This handy piece of JavaScript will disable the drag and drop function for all library web parts on a single page. Other upload options will still work.

Just paste this into a Script Editor web part:


<script>

ExecuteOrDelayUntilScriptLoaded(function() {

    g_uploadType = DragDropMode.NOTSUPPORTED;

    SPDragDropManager.DragDropMode = DragDropMode.NOTSUPPORTED;

}, "DragDrop.js");

</script>