FileUploaderBuilder.UploadHeaders(Object) Method
Specifies headers for the upload request. Mirrors the client-side uploadHeaders option.
Namespace: DevExtreme.AspNet.Mvc.Builders
Assembly: DevExtreme.AspNet.Core.dll
Declaration
public FileUploaderBuilder UploadHeaders(
object value
)
Parameters
Name | Type | Description |
---|---|---|
value | Object | The option value. |
Returns
Type | Description |
---|---|
FileUploaderBuilder | A reference to this instance after the method is called. |
Remarks
Use the following notation to set the option’s value:
@(Html.DevExtreme().FileUploader()
.UploadHeaders(new Dictionary<string, string> { ["Authorization"] = "..." })
)
See Also