menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class BeforeRemoveEventArgs - Blazor API Reference | Syncfusion

    Show / Hide Table of Contents

    Class BeforeRemoveEventArgs

    Provides information about the BeforeRemove event callback.

    Inheritance
    System.Object
    BeforeRemoveEventArgs
    Namespace: Syncfusion.Blazor.Inputs
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class BeforeRemoveEventArgs : Object
    Remarks

    This event is triggered before files are removed from the uploader component. It provides an opportunity to cancel the removal operation, modify the request parameters, or perform custom validation before the files are actually removed from the server.

    Constructors

    BeforeRemoveEventArgs()

    Declaration
    public BeforeRemoveEventArgs()

    Properties

    Cancel

    Gets or sets a value indicating whether the file removal action has been canceled.

    Declaration
    public bool Cancel { get; set; }
    Property Value
    Type Description
    System.Boolean

    true to cancel the file removal operation; otherwise, false.

    Remarks

    Setting this property to true will prevent the file removal operation from proceeding. This allows for conditional removal based on custom logic or user confirmation.

    CurrentRequest

    Gets or sets the XMLHttpRequest instance associated with the file removal operation.

    Declaration
    public object CurrentRequest { get; set; }
    Property Value
    Type Description
    System.Object

    An object containing XMLHttpRequest details, or null if no request is associated.

    Remarks

    This property provides access to the underlying HTTP request object that will be used for the file removal operation. It allows for customization of request headers, authentication, and other HTTP-specific settings before the removal request is sent to the server.

    CustomFormData

    Gets or sets additional custom data in key-value pair format to be submitted with the removal request.

    Declaration
    public object CustomFormData { get; set; }
    Property Value
    Type Description
    System.Object

    An object containing key-value pairs of additional data, or null if no custom data is provided.

    Remarks

    This property allows developers to include additional parameters or metadata with the file removal request. Common uses include authentication tokens, user identifiers, or other application-specific data required by the server-side removal handler.

    FilesData

    Gets or sets the list of file details that will be removed from the server.

    Declaration
    public List<FileInfo> FilesData { get; set; }
    Property Value
    Type Description
    System.Collections.Generic.List<FileInfo>

    A System.Collections.Generic.List<> containing the details of files to be removed, or null if no files are specified.

    Remarks

    This property contains information about all files that are scheduled for removal, including file names, sizes, and other metadata. This information can be used for logging, validation, or displaying confirmation messages to users before removal.

    PostRawFile

    Gets or sets a value indicating whether the selected raw file data should be sent to the server during removal.

    Declaration
    public bool PostRawFile { get; set; }
    Property Value
    Type Description
    System.Boolean

    true to send the raw file data to the server; otherwise, false. The default is true.

    Remarks

    When set to true, the complete file information including binary data is sent to the server. When set to false, only the file metadata (such as filename and size) is sent. Setting this to false can improve performance when only file identification is needed for removal operations.

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