{
  "$schema": "https://ai.syncfusion.com/schema/registry-item.json",
  "name": "file-manager-restrict-drag-and-drop-upload",
  "framework": "react",
  "type": "registry:component",
  "component": "FileManager",
  "variant": "restrict-drag-and-drop-upload",
  "dependencies": [
    "@syncfusion/ej2-react-filemanager"
  ],
  "description": "File manager that blocks uploads dragged in from the desktop by clearing the uploader drop area.",
  "meta": {
    "essentialStudioRelease": "2026 Volume 3 (v35.1.37)",
    "license": "commercial-or-community",
    "licenseNote": "The Syncfusion package is licensed. The composition in this file is source you own and edit. See https://ai.syncfusion.com/licensing.md",
    "requiresLicenseKey": true,
    "requiresServerEndpoint": true,
    "platformIndex": "https://ai.syncfusion.com/react/llms.txt",
    "skillPack": "syncfusion/react-ui-components-skills",
    "docs": "https://ai.syncfusion.com/gallery/react/ts/file-manager-restrict-drag-and-drop-upload.md"
  },
  "files": [
    {
      "target": "src/components/file-manager-restrict-drag-and-drop-upload/FileManager.tsx",
      "content": "import { DetailsView, FileManagerComponent, NavigationPane, Toolbar, Inject, type ViewType } from '@syncfusion/ej2-react-filemanager';\n\n/**\n * File Manager restrict external drag and drop upload sample\n */\nconst RestrictDragAndDropUpload = () => {\n  let hostUrl: string = \"https://physical-service.syncfusion.com/\";\n  let fileObj: FileManagerComponent;\n  let ajaxSettings: object = {\n    downloadUrl: hostUrl + 'api/FileManager/Download',\n    getImageUrl: hostUrl + \"api/FileManager/GetImage\",\n    uploadUrl: hostUrl + 'api/FileManager/Upload',\n    url: hostUrl + \"api/FileManager/FileOperations\"\n  };\n  let height: string = \"375px\";\n  let view: ViewType = \"LargeIcons\";\n\n  function onCreated() {\n    fileObj.uploadObj.dropArea = '';  // Restrict file uploads by dragging them from the local file system to the File Manager.\n  }\n  return (\n    <div className=\"control-section\">\n      <FileManagerComponent ref={ (s: FileManagerComponent | null) => { fileObj = s as FileManagerComponent; }} id=\"file\" view={view} height={height}\n        ajaxSettings={ajaxSettings}\n        created={onCreated.bind(this)}>\n        <Inject services={[NavigationPane, DetailsView, Toolbar]} />\n      </FileManagerComponent>\n    </div>\n  );\n}\nexport default RestrictDragAndDropUpload;\n"
    }
  ]
}