Skip to main content

FileManagerSettings.FileUploading Property

Fires on the server side before a file is uploaded, and allows you to cancel the action.

Namespace: DevExpress.Web.Mvc

Assembly: DevExpress.Web.Mvc5.v24.1.dll

NuGet Package: DevExpress.Web.Mvc5

Declaration

public FileManagerFileUploadEventHandler FileUploading { get; set; }

Property Value

Type Description
FileManagerFileUploadEventHandler

A FileManagerFileUploadEventHandler delegate method to be called when a file is about to be uploaded within the FileManager upload panel.

Remarks

Implement a FileManagerFileUploadEventHandler delegate method and assign it to the FileUploading property. For more implementation details, refer to the FileManagerFileUploadEventHandler delegate description.

Before each time a file is uploaded on the server side, the FileUploading event occurs, allowing you to cancel the file upload. The event parameter’s FileManagerFileUploadEventArgs.File property identifies the file that is being processed. To cancel the upload operation, set the FileManagerActionEventArgsBase.Cancel property to true. In order to show a message explaining the reason for the upload cancellation, specify the FileManagerActionEventArgsBase.ErrorText property.

See Also