Back to Devexpress

HtmlEditorImageUploadBuilder.FileUploadMode(HtmlEditorImageUploadFileUploadMode) Method

aspnetcore-devextreme-dot-aspnet-dot-mvc-dot-builders-dot-htmleditorimageuploadbuilder-dot-fileuploadmode-x28-devextreme-dot-aspnet-dot-mvc-dot-htmleditorimageuploadfileuploadmode-x29.md

latest1.6 KB
Original Source

HtmlEditorImageUploadBuilder.FileUploadMode(HtmlEditorImageUploadFileUploadMode) Method

Specifies how the HTML Editor UI component uploads files. Mirrors the client-side fileUploadMode option.

Namespace : DevExtreme.AspNet.Mvc.Builders

Assembly : DevExtreme.AspNet.Core.dll

Declaration

csharp
public HtmlEditorImageUploadBuilder FileUploadMode(
    HtmlEditorImageUploadFileUploadMode value
)

Parameters

NameTypeDescription
valueHtmlEditorImageUploadFileUploadMode

An enumeration value.

|

Returns

TypeDescription
HtmlEditorImageUploadBuilder

A reference to this instance after the method is called.

|

Remarks

Use the following notation to set the option’s value:

cshtml
@(Html.DevExtreme().HtmlEditor()
    .ImageUpload(iupload => iupload 
        .FileUploadMode(HtmlEditorImageUploadFileUploadMode.Both)
    )
)

See Also

HtmlEditorImageUploadBuilder Class

HtmlEditorImageUploadBuilder Members

DevExtreme.AspNet.Mvc.Builders Namespace