Skip to content
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 opened this issue Aug 18, 2016 · 0 comments
Closed

Stream should be suppressed from model metadata validation #5154

choudeshell opened this issue Aug 18, 2016 · 0 comments

Comments

@choudeshell
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants