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.
IFormFile model binder suppressing validation for any non-null result. #4329
Closed
Description
The FormFileModelBinder suppresses any further validation if a value is found. This can result in some confusion (example) because any validation attributes attached to a property that is an IFormFile or collection of IFormFiles will not be invoked if any files actually exist.
Is this suppression necessary?