This question is locked. New answers and comments are not allowed.
Hello,
I was wondering how to properly validate the upload control for MVC. I cannot bind the control to a property as far as I know? So I cannot use the model validation since the icon property of my entity won't be set when the model hits the controller. So I can validate server side and post back a message to the validation summary, but I'd rather check it client side and set an error message before anything is being posted back onto the server. Is this possible?
I was wondering how to properly validate the upload control for MVC. I cannot bind the control to a property as far as I know? So I cannot use the model validation since the icon property of my entity won't be set when the model hits the controller. So I can validate server side and post back a message to the validation summary, but I'd rather check it client side and set an error message before anything is being posted back onto the server. Is this possible?