Skip to content
This repository was archived by the owner on Dec 14, 2018. It is now read-only.
This repository was archived by the owner on Dec 14, 2018. It is now read-only.

Stream should be suppressed from model metadata validation  #5154

Closed
@choudeshell

Description

@choudeshell

Currently, if a given action has a parameter of type Stream, model binding will throw unexpected exceptions due to the model metadata validation. Stream should be suppressed from model metadata validation. The default MvcOptions should include
options.ModelMetadataDetailsProviders.Add(new SuppressChildValidationMetadataProvider(typeof(Stream)));

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions