alexa
menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Search Results for

    Show / Hide Table of Contents

    Enum UploadContentFilter

    Specifies the content categories that are eligible for upload in the SfFileManager<TValue> and related components.

    Namespace: Syncfusion.Blazor.FileManager
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public enum UploadContentFilter
    Remarks

    Use this enumeration to control which items (files, folders, or both) the application accepts during upload operations. This filter is typically applied by properties such as UploadContentFilter to validate user selections before an upload begins.

    • All — No filtering is applied; both files and folders are allowed.
    • FilesOnly — Only file items are allowed; folders are rejected.
    • FoldersOnly — Only folders are allowed; files are rejected.
    Examples
    // Allow only files to be uploaded 
    fileManager.UploadContentFilter = UploadContentFilter.FilesOnly; 
    
    // Allow both files and folders (default in many scenarios) 
    fileManager.UploadContentFilter = UploadContentFilter.All;

    Fields

    Name Description
    All

    Allows both files and folders to be uploaded without restriction.

    FilesOnly

    Restricts uploads to files only; folder items are not permitted.

    FoldersOnly

    Restricts uploads to folders only; file items are not permitted.

    In this article
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved