This question already has an answer here:
I have a test.aspx page on which i have inserted a web part i.e. OOTB web part which is a library. According to the requirements, I need to disable drag and drop functionality for the users. User will not be able to add any documents on this web part, web part will only show them the list view of all the documents in the library. I changed the "style" to"Shaded" used css but still no success.