Forum Discussion
SR2612
Jul 20, 2023Copper Contributor
How to disable Drag and Drop feature in sharepoint online document library
Hi All, Based on project requirement, we are using custom forms while uploading documents in SharePoint Online site using SPFx. However the drag and drop feature directly uploads the document, w...
Paul de Jong
Jul 20, 2023Iron Contributor
About 2. This is not trivial. Using SPFx you can inject JavaScript logic into the page and then try to detect changes and show the custom form when documents are being uploaded. Another approach is to use Power Automate.
Making this solution 100% reliable is going to be a challenge. Does your form also show when users click the Upload button or upload 10's of documents or a folder structure? or when they use OneDrive for Business client or apps on mobile devices? Do you also need to cater for documents being added to the library via Cop (or Move) from other libraries?