Interface IUploadEventHandler
Defines optional callbacks that run during server-side validation and after successful uploads.
Assembly: CoreUpload.dll
Syntax
public interface IUploadEventHandler
Methods
OnFileUploadedAsync(FileUploadedEvent, CancellationToken)
Runs after a file has been successfully stored.
Declaration
Task OnFileUploadedAsync(FileUploadedEvent e, CancellationToken ct = default)
Parameters
Returns
OnFileValidatingAsync(FileValidatingEvent, CancellationToken)
Runs before a file is accepted.
Set Cancel to reject the upload.
Declaration
Task OnFileValidatingAsync(FileValidatingEvent e, CancellationToken ct = default)
Parameters
Returns