HtmlEditorExtension.SaveUploadedFile(String, UploadControlValidationSettings, String, String, FileSavingEventHandler) Method
Saves a file uploaded using a specific HtmlEditor’s File Selector dialog.
Namespace: DevExpress.Web.Mvc
Assembly: DevExpress.Web.Mvc5.v24.1.dll
NuGet Package: DevExpress.Web.Mvc5
Declaration
public static void SaveUploadedFile(
string name,
UploadControlValidationSettings validationSettings,
string uploadFolder,
string fileName,
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. |
fileName | String | A string value specifying the file name. |
onFileUploadComplete | FileSavingEventHandler | A delegate method that will handle the event that allows you to process an uploaded file before it is saved to the server. |
See Also