Skip to main content

HtmlEditorExtension.SaveUploadedFile(String, UploadControlValidationSettings, String, FileSavingEventHandler) Method

Saves a file uploaded using a specific HtmlEditor’s File Selector dialog.

Namespace: DevExpress.Web.Mvc

Assembly: DevExpress.Web.Mvc5.v23.2.dll

NuGet Package: DevExpress.Web.Mvc5

Declaration

public static void SaveUploadedFile(
    string name,
    UploadControlValidationSettings validationSettings,
    string uploadFolder,
    FileSavingEventHandler onFileUploadComplete
)

Parameters

Name Type Description
name String

A string value specifying the HtmlEditor’s name (SettingsBase.Name).

validationSettings UploadControlValidationSettings

A UploadControlValidationSettings object containing settings that relate to uploaded file validation.

uploadFolder String

A string value specifying the upload folder path.

onFileUploadComplete FileSavingEventHandler

A delegate method that will handle the event that allows you to process an uploaded audio file before it is saved to the server.

See Also