Hi,
I have an upload control that the validation is not working on. I am setting it to restrict to .jpg only and 2mb but the save action is called no matter what I upload to it.
@(Html.Kendo().Upload() .Events(e => e.Success("onParent1UploadSuccess")) .Async(a => a .AutoUpload(true) .Save("SaveParent1", "HistoryForm", new { AdmissionPK = Model.AdmissionPK }) ) .ShowFileList(false) .Multiple(false) .Name("Parent1Upload") .Validation(v => v .AllowedExtensions(new string[] { ".jpg" }) .MaxFileSize(2097152) ) .Messages(m => m.Select("Select File...")))
How do I get the validation to actually work?
Thanks.