{
  "$schema": "https://ai.syncfusion.com/schema/registry-item.json",
  "name": "file-manager-access-control",
  "framework": "javascript",
  "type": "registry:component",
  "component": "FileManager",
  "variant": "access-control",
  "dependencies": [
    "@syncfusion/ej2-filemanager"
  ],
  "description": "File manager sample with document access rules, role filters, and user-based navigation.",
  "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/javascript/llms.txt",
    "skillPack": "syncfusion/javascript-ui-components-skills",
    "docs": "https://ai.syncfusion.com/gallery/javascript/file-manager-access-control.md"
  },
  "files": [
    {
      "target": "src/components/file-manager-access-control/file-manager.html",
      "content": "<div class=\"control-section\">\n            <div id=\"container\" ></div>\n</div>\n<style>\n    .fileupload {\n        max-width: 500px;\n        margin: auto;\n    }\n    #openBtn {\n        position: absolute;\n        top: 34px;\n        left: 43%;\n    }\n    #target {\n        height: 550px;\n    }\n    #dialog {\n        top: 20px !important;\n        max-height: 500px !important;\n    }\n    .fileupload .e-file-drop, .fileupload .e-css.e-btn {\n        display: none;\n    }\n    \n    .tailwind #openBtn,\n\t.tailwind-dark #openBtn {\n\t\ttop: 29px;\n\t}\n\t\n    .bootstrap #openBtn,\n    .bootstrap-dark #openBtn {\n        top: 30px;\n    }\n\t.bootstrap5 #openBtn,\n    .bootstrap5-dark #openBtn {\n        top: 26px;\n    }\n\n</style>"
    },
    {
      "target": "src/components/file-manager-access-control/file-manager.ts",
      "content": "import { FileManager, Toolbar, NavigationPane, DetailsView } from '@syncfusion/ej2-filemanager';\n\nFileManager.Inject(Toolbar, NavigationPane, DetailsView);\n\n/**\n * File Manager real time use case sample\n */\n\nexport function initFileManagerAccessControl(): void {\n\n    let hostUrl: string = 'https://physical-service.syncfusion.com/';\n\n    // Initialize the FileManager component\n    let filemanagerInstance: FileManager = new FileManager({\n        ajaxSettings: {\n            url: hostUrl + 'api/FileManagerAccess/FileOperations',\n            uploadUrl: hostUrl + 'api/FileManagerAccess/Upload',\n            downloadUrl: hostUrl + 'api/FileManagerAccess/Download',\n            getImageUrl: hostUrl + 'api/FileManagerAccess/GetImage'\n        },\n        toolbarSettings: { items: ['NewFolder', 'SortBy', 'Cut', 'Copy', 'Paste', 'Delete', 'Refresh', 'Download', 'Rename', 'Selection', 'View', 'Details'] },\n        uploadSettings: { directoryUpload: true },\n    });\n    filemanagerInstance.appendTo('#container');\n}\n"
    }
  ]
}