FileUploadEventArgs Class

Provides data for the upload events.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.dll

Declaration

public class FileUploadEventArgs :
    EventArgs

Remarks

This class provides data for the following events:

The event argument's FileInfo property stores information about a file (the name, size, type, etc.)

<DxUpload Name="myFile" UploadUrl="https://localhost:10000/api/Upload/UploadFile/" 
          FileUploadStarted="@OnFileUploadStarted"
          ShowFileList="false">
</DxUpload>

@code {
    void OnFileUploadStarted(FileUploadEventArgs e) {
        // Write your code here. For instance, show an information message.
        string message = "Upload of the " + e.FileInfo.Name + " file was started.";
        ShowMyMessage(message);
    }
}

Inheritance

See Also