skillZs
★ LIVE SKILL TAGS ★
>>> LIVE SKILLS INDEX <<<
* OPEN SOURCE *
NO LOGIN, NO TRACKING
※ REAL INSTALL DATA ※
← back to all skills
syncfusion/blazor-ui-components-skills394 installs

syncfusion-blazor-file-manager

Implement Syncfusion Blazor FileManager component for file browsing and management. Use this when creating hierarchical file systems, handling multiple file operations, implementing data binding patterns, or setting up cloud provider integration. This skill covers file operations, data binding, events handling, and customization options.

How do I install this agent skill?

npx skills add https://github.com/syncfusion/blazor-ui-components-skills --skill syncfusion-blazor-file-manager
view source ↗

Is this agent skill safe to install?

  • Gen Agent Trust Hubpass

    This skill provides documentation and implementation patterns for the Syncfusion Blazor FileManager component. It promotes safe coding practices, such as path validation and size limits for file operations, and uses standard vendor-provided NuGet packages. No malicious patterns or security risks were detected.

  • Socketwarn

    1 alert: gptAnomaly

  • Snykpass

    Risk: LOW · No issues

What does this agent skill do?

Implementing Syncfusion Blazor FileManager

When to Use This Skill

Use this skill when you need to:

  • Create a file management interface - Build web applications for browsing, uploading, downloading, and managing files
  • Set up cloud storage integration - Connect to Azure Blob Storage, Amazon S3, Google Drive, SharePoint, or Firebase
  • Deploy a unified provider service via Docker - Run the combined Azure Blob / Amazon S3 provider image and point the Blazor File Manager at it
  • Implement file operations - Enable users to create, delete, rename, copy, move, search files and folders
  • Handle large file sets - Display thousands of files with virtualization and pagination
  • Customize the UI - Tailor toolbar, context menu, views, and navigation to your needs
  • Add drag-and-drop functionality - Allow users to drag and drop files for upload or organization
  • Build accessible file systems - Provide WCAG-compliant file management with keyboard navigation
  • Handle complex workflows - Implement custom sorting, filtering, previewing, and multi-provider scenarios

Component Overview

The Syncfusion Blazor FileManager is a comprehensive component for file and folder management. It provides:

  • Multiple file operations: Read, Create, Delete, Rename, Search, Copy, Move, Upload, Download, Get Details, GetSelectedFiles
  • Flexible data binding: AJAX settings, list objects, or injected services
  • Rich events system: 20+ events including PageChanging/PageChanged for pagination
  • Multiple UI customizations: Toolbar, context menu, view modes (Details, LargeIcons), NavigationPaneTemplate
  • File preview capabilities: ShowThumbnail property for image and file previews
  • Cloud provider support: Physical files, Azure, AWS S3, Google Drive, SharePoint, Firebase, SQL, FTP
  • Advanced features: Virtualization, pagination with events, drag-and-drop, custom filtering, sorting, accessibility
  • Layout management: RefreshLayoutAsync for dynamic resizing and nested component scenarios
  • High performance: Handles large file sets with virtualization and lazy loading

Documentation and Navigation Guide

Getting Started

📄 Read: references/getting-started.md

  • Installation for Web App, Server App, WASM App, and MAUI App
  • NuGet package setup and service registration
  • Basic component initialization and AJAX configuration
  • File provider setup and wwwroot configuration
  • First file manager instance in 5 minutes

File Operations

📄 Read: references/file-operations.md

  • 11 core operations: Read, Create, Delete, Rename, Search, Details, Copy, Move, Upload, Download, GetImage
  • Request/response data structures and parameters
  • Operation examples with code from documentation
  • Public methods: DownloadFilesAsync(selectedItems), GetSelectedFiles()
  • File preview capabilities with ShowThumbnail property
  • Sorting functionality with SortBy and SortOrder properties

Data Binding Patterns

📄 Read: references/data-binding.md

  • AjaxSettings for remote data binding
  • List objects with local data and OnRead event
  • Injected service pattern for complex scenarios
  • FileManagerDirectoryContent structure
  • When to use each binding method

Events and Callbacks

📄 Read: references/events-and-callbacks.md

  • 20+ file manager events with complete signatures
  • Event lifecycle and timing
  • Common event handler patterns
  • BeforeDownload, BeforeImageLoad, OnFileOpen events
  • ItemsDeleting, ItemsDeleted, FolderCreating, FolderCreated events
  • Searching, Searched, ItemRenaming, ItemRenamed events

Customization and UI

📄 Read: references/customization.md

  • Toolbar customization and item configuration
  • Context menu customization
  • View modes: Details View, LargeIcons View
  • Navigation items customization with NavigationPaneTemplate
  • Custom navigation pane templates with icons and metadata
  • Styling and CSS customization
  • Appearance and theme configuration

File Providers and Storage

📄 Read: references/file-providers.md

  • Physical file provider (local file system)
  • Azure Blob Storage configuration
  • Amazon S3 cloud provider
  • Google Drive integration
  • SharePoint Online provider
  • Firebase Real-time Database
  • SQL Database provider
  • FTP (File Transfer Protocol) provider

Docker Deployment

📄 Read: references/docker-deployment.md

  • Unified Docker image for Azure Blob Storage and Amazon S3 providers
  • FILEMANAGER_PROVIDER environment variable to switch backends
  • docker-compose.yml configuration for both providers
  • Client-side FileManagerAjaxSettings wiring to the running container
  • Troubleshooting storage, port, and DNS issues

Upload and Download

📄 Read: references/upload-download.md

  • File upload configuration and events
  • Directory upload (folder upload)
  • File download with single and ZIP support
  • Large file handling
  • Upload progress tracking
  • Download prevention and validation
  • BeforeDownload event for custom logic

Advanced Features

📄 Read: references/advanced-features.md

  • Virtualization for large file sets
  • Pagination configuration with PageChanging and PageChanged events
  • Drag and drop functionality
  • Restrict drag-and-drop upload
  • Custom filtering and search
  • Nested items handling with RefreshLayoutAsync method
  • Component integration in dialogs and containers
  • Accessibility features (WCAG compliance)
  • Keyboard navigation support
  • Multiple file selection

Quick Start Example

@using Syncfusion.Blazor.FileManager

<SfFileManager TValue="FileManagerDirectoryContent">
    <FileManagerAjaxSettings Url="/api/FileManager/FileOperations"
                             UploadUrl="/api/FileManager/Upload"
                             DownloadUrl="/api/FileManager/Download"
                             GetImageUrl="/api/FileManager/GetImage">
    </FileManagerAjaxSettings>
</SfFileManager>

Server-side setup (Program.cs):

using Syncfusion.Blazor;

builder.Services.AddSyncfusionBlazor();
builder.Services.AddControllers();

app.UseRouting();
app.MapControllers();

HTML setup (App.razor):

<head>
    <link href="_content/Syncfusion.Blazor.Themes/bootstrap5.css" rel="stylesheet" />
</head>
<body>
    <script src="_content/Syncfusion.Blazor.Core/scripts/syncfusion-blazor.min.js"></script>
</body>

Common Patterns

Pattern 1: Local Data with OnRead Event

<SfFileManager TValue="FileManagerDirectoryContent">
    <FileManagerEvents TValue="FileManagerDirectoryContent" OnRead="OnReadAsync"></FileManagerEvents>
</SfFileManager>

@code {
    private async Task OnReadAsync(ReadEventArgs<FileManagerDirectoryContent> args)
    {
        // Load data from your service
        var response = await YourService.GetFilesAsync(args.Path);
        args.Response = response;
    }
}

Pattern 2: Cloud Storage with Azure Provider

<SfFileManager TValue="FileManagerDirectoryContent">
    <FileManagerAjaxSettings Url="/api/AzureProvider/FileOperations"
                             UploadUrl="/api/AzureProvider/Upload"
                             DownloadUrl="/api/AzureProvider/Download"
                             GetImageUrl="/api/AzureProvider/GetImage">
    </FileManagerAjaxSettings>
</SfFileManager>

Pattern 3: Programmatic Download

@ref="FileManager"

<SfButton OnClick="DownloadFiles">Download Selected</SfButton>
<SfFileManager @ref="FileManager" TValue="FileManagerDirectoryContent">
    <!-- configuration -->
</SfFileManager>

@code {
    SfFileManager<FileManagerDirectoryContent> FileManager;
    
    public async Task DownloadFiles()
    {
        await FileManager.DownloadFilesAsync(FileManager.SelectedItems);
    }
}

Pattern 4: Custom Event Handling

<SfFileManager TValue="FileManagerDirectoryContent">
    <FileManagerEvents TValue="FileManagerDirectoryContent" 
                       ItemsDeleting="OnItemsDeleting"
                       BeforeDownload="OnBeforeDownload">
    </FileManagerEvents>
</SfFileManager>

@code {
    public async Task OnItemsDeleting(ItemsDeleteEventArgs<FileManagerDirectoryContent> args)
    {
        // Validate before delete
        if (args.Files.Count > 10)
        {
            args.Cancel = true;
        }
    }

    public void OnBeforeDownload(BeforeDownloadEventArgs<FileManagerDirectoryContent> args)
    {
        // Custom download logic
    }
}

Key Properties

PropertyTypeDefaultPurpose
TValueGenericFileManagerDirectoryContentData model type
Urlstring-AJAX endpoint for file operations
UploadUrlstring-Upload endpoint
DownloadUrlstring-Download endpoint
GetImageUrlstring-Image preview endpoint
SortBystringNameSort field (Name, Size, DateModified, DateCreated)
SortOrderSortOrderAscendingSort direction (None, Ascending, Descending)
ViewViewTypeLargeIconsDisplay mode (Details, LargeIcons)
EnableVirtualizationboolfalseEnable virtual scrolling for large datasets
RootPathstring-Root directory path
ShowHiddenItemsboolfalseShow hidden files and folders
EnablePaginationboolfalseEnable pagination support
PageSizeint100Number of items per page
DirectoryUploadboolfalseAllow directory upload

Common Use Cases

1. Internal Document Management

  • Setup with physical file provider
  • Use toolbar for CRUD operations
  • Enable search and filtering
  • Add event handlers for audit logging

2. Cloud-Based Team Collaboration

  • Connect to Azure or AWS S3
  • Enable drag-and-drop upload
  • Add custom toolbar for sharing
  • Implement access control via events

3. Media Library

  • Enable image preview with GetImageUrl
  • Use LargeIcons view for thumbnails
  • Implement pagination for performance
  • Add custom filtering by file type

4. Backup and Archive System

  • Connect to multiple storage providers
  • Enable download with compression
  • Use virtualization for large datasets
  • Add custom sorting and filtering

5. Public File Sharing Portal

  • Restrict operations via event handlers
  • Disable delete and rename
  • Enable download and preview only
  • Customize navigation and UI

6. Containerized Cloud Storage Backend

  • Run the unified syncfusion/filemanager-provider Docker image
  • Switch between Azure Blob Storage and Amazon S3 with the FILEMANAGER_PROVIDER env var
  • Point the Blazor client's FileManagerAjaxSettings at the container's API endpoints

Next Steps

  1. Choose your setup: Start with Getting Started for your platform
  2. Pick your data source: Read Data Binding Patterns to choose AJAX, local, or service
  3. Configure file operations: Check File Operations for available actions
  4. Handle events: Review Events and Callbacks for required handlers
  5. Customize UI: See Customization for toolbar and themes
  6. Choose storage: Select provider in File Providers
  7. Containerize the backend: Deploy the unified Azure / S3 provider with Docker Deployment

Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.

<a href="https://skillzs.dev/skills/syncfusion/blazor-ui-components-skills/syncfusion-blazor-file-manager">View syncfusion-blazor-file-manager on skillZs</a>