Class BeforeUploadEventArgs
Provides information about the BeforeRemove event callback.
Inheritance
System.Object
BeforeUploadEventArgs
Namespace: Syncfusion.Blazor.Inputs
Assembly: Syncfusion.Blazor.dll
Syntax
public class BeforeUploadEventArgs : Object
Constructors
BeforeUploadEventArgs()
Declaration
public BeforeUploadEventArgs()
Properties
Cancel
Gets or sets whether the file upload action has been canceled or not.
Declaration
public bool Cancel { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | System.Boolean |
CurrentRequest
Gets the XMLHttpRequest instance that is associated with the upload action.
Declaration
public object CurrentRequest { get; set; }
Property Value
Type | Description |
---|---|
System.Object | Details of an XMLHttpRequest object. |
CustomFormData
Gets or sets the additional data in key and value pair format to be sent to the file uploading request.
Declaration
public object CustomFormData { get; set; }
Property Value
Type | Description |
---|---|
System.Object | Key and value pair object. |
Examples
<SfUploader>
<UploaderEvents BeforeUpload="@BeforeUploadHandler"/>
</SfUploader>
@code {
public void BeforeUploadHandler(BeforeUploadEventArgs args) {
var accessToken = "Authorization_token";
args.CurrentRequest = new List<object> { new { Authorization = accessToken } };
}
}
FilesData
Gets the list of the selected file details.
Declaration
public List<FileInfo> FilesData { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<FileInfo> |
WithCredentials
Gets or sets the value that indicates requests should be made using credentials such as cookies and authorization headers for cross-site requests. The default is false
.
Declaration
public bool WithCredentials { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | System.Boolean |