Skip to main content

FileUploaderBuilder.InvalidFileExtensionMessage(JS) Method

The text displayed when the extension of the file being uploaded is not an allowed file extension. Mirrors the client-side invalidFileExtensionMessage option.

Namespace: DevExtreme.AspNet.Mvc.Builders

Assembly: DevExtreme.AspNet.Core.dll

Declaration

public FileUploaderBuilder InvalidFileExtensionMessage(
    JS value
)

Parameters

Name Type Description
value JS

A JavaScript variable that contains a string value.

Returns

Type Description
FileUploaderBuilder

A reference to this instance after the method is called.

Remarks

Use the new JS() expression to set the option’s value.

<script>
    var myValue = ...;
</script>

@(Html.DevExtreme().FileUploader()
    .InvalidFileExtensionMessage(new JS("myValue"))
)
See Also