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
Description
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)));