The requested page is not available for the requested platform. You are viewing the content for Default platform.

ASPxHtmlEditor.ImageFileSaving Event

Allows you to process an uploaded image file before it is saved to the server

Namespace: DevExpress.Web.ASPxHtmlEditor

Assembly: DevExpress.Web.ASPxHtmlEditor.v19.2.dll

Declaration

public event FileSavingEventHandler ImageFileSaving
Public Event ImageFileSaving As FileSavingEventHandler

Event Data

The ImageFileSaving event handler receives an argument of the FileSavingEventArgs type. The following properties provide information specific to this event.

Property Description
CallbackData Obsolete. This property is not in effect for the FileSavingEventArgs class.
Cancel Indicates if the action which raised the event should be canceled.
ErrorText Gets or sets the error text.
(Inherited from FileUploadCompleteEventArgs)
FileName Gets or sets the name of the uploaded file.
IsValid Gets or sets a value specifying whether the uploaded file passes validation.
(Inherited from FileUploadCompleteEventArgs)
OutputStream Set this property to change the original file content.
SavedFileUrl Gets or sets the URL of the saved file.
UploadedFile Gets the uploaded file object related to the event.
(Inherited from FileUploadCompleteEventArgs)

Remarks

ASPxHtmlEditor provides you with the capability to process an uploaded file before it is saved to the server. You can process image, audio, video, and flash files by handling the corresponding events.

Use the ImageFileSaving event to process an image file before it is saved to the server.

Note

The ImageFileSaving event is fired after the ASPxHtmlEditor.PastedImageSaving event if the IsValid property is set to true and the FileSavingEventArgs.Cancel property is set to false.

See Also