asp.net MVC 2 Validating File uploads with data annotation

Posted by Francis Gilbert on Stack Overflow See other posts from Stack Overflow or by Francis Gilbert
Published on 2010-03-09T09:48:18Z Indexed on 2010/03/09 9:51 UTC
Read the original article Hit count: 578

Filed under:
|
|

I'm trying to validate a form using Data Annotation. It seems great for string types and integers, but for a file upload, I couldn't validate from the class. It would just be sent a string "HttpPostedFileWrapper". Does anyone have any tips?

Thanks

© Stack Overflow or respective owner

Related posts about c#

Related posts about asp.net-mvc