Hi,
I need to add following validations on upload image control(@Html.TextBoxFor(model => model.image, new { type = "file", accept = "image/*" })):
*image type,
*image size
But I do not want to add require field validator on this control.
I want that when a user upload a image then it should be validate for size and type and when user not upload image then it should not be validate and other records could save.
Please suggest.
Thank you,
Regards,
Ashish