Back to Devexpress

FileUploaderBuilder.UploadMethod(UploadHttpMethod) Method

aspnetcore-devextreme-dot-aspnet-dot-mvc-dot-builders-dot-fileuploaderbuilder-dot-uploadmethod-x28-devextreme-dot-aspnet-dot-mvc-dot-uploadhttpmethod-x29.md

latest1.4 KB
Original Source

FileUploaderBuilder.UploadMethod(UploadHttpMethod) Method

Specifies the method for the upload request. Mirrors the client-side uploadMethod option.

Namespace : DevExtreme.AspNet.Mvc.Builders

Assembly : DevExtreme.AspNet.Core.dll

Declaration

csharp
public FileUploaderBuilder UploadMethod(
    UploadHttpMethod value
)

Parameters

NameTypeDescription
valueUploadHttpMethod

The option value.

|

Returns

TypeDescription
FileUploaderBuilder

A reference to this instance after the method is called.

|

Remarks

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

cshtml
@(Html.DevExtreme().FileUploader()
    .UploadMethod(UploadHttpMethod.POST)
)

See Also

FileUploaderBuilder Class

FileUploaderBuilder Members

DevExtreme.AspNet.Mvc.Builders Namespace