kendo upload image file dimension validation

2019-08-26 03:24发布

问题:

here is my problem i have been using ken do-control upload control to upload my images and the real problem is i want to set validation that user should upload image in 35 mm*45 mm.and in ken do upload events i have given a function Events(events => .Select("onImageSelect")and in function function onImageSelect(e) { if (e.files[0].width == 35||e.files[0].height == 45) { return true; } but i am getting width and height undefined