FileUploadErrorEventArgs Class

Provides data for the FileUploadError event.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.dll

Declaration

public class FileUploadErrorEventArgs :
    FileUploadEventArgs

Remarks

This class includes the following properties:

  • FileInfo - Returns information about a file (the name, size, type, etc.)
  • RequestInfo - Returns information about a request's response (the status and entire message).
<DxUpload Name="myFile" UploadUrl="https://localhost:10000/api/Upload/UploadFile/" 
          FileUploadError="@OnFileUploadError"
          ShowFileList="false">
</DxUpload>

@code {
    void OnFileUploadError(FileUploadErrorEventArgs e) {
        // Write your code here. For instance, show an information message.
        string message = "The " + e.FileInfo.Name + " file was not uploaded. Error:" + e.RequestInfo.Status;
        ShowMyMessage(message);
    }
}

Inheritance

Object
EventArgs
FileUploadEventArgs
FileUploadErrorEventArgs
See Also