.NET Core | Custom Validation Attributes

Ibrahim Jaber
2 min readMay 9, 2021
Photo by Joshua Sortino on Unsplash

When you have complex model properties, in some cases it requires a specific type of validation, that classical Data annotation attributes cannot provide.
That’s where custom validation attributes could come and smoothen the process of validation without overwhelming the controller on your post back to the server. Today I will walk you through building custom validation attributes to validate file uploads in .NET Core.

Ibrahim Jaber

Software developer | Programming and Blockchain enthusiast