I'm using kendo upload and want to know how I can validate the bulk upload on file size. (I don't need to upload files which are sized more than 3 MB, but the other files should upload). I have done it in the following way and it drops out the file which is too big and fails to upload the other documents which comes after the error file.
<div class="demo-section k-content">
@(Html.Kendo().Upload()
.Name("files")
.Async(a => a
.Save("ChunkSave", "FileUpload")
.Remove("Remove", "FileUpload")
.AutoUpload(true)
.ChunkSize(1100)
)
.Validation(validation => validation.AllowedExtensions(new string[] { ".docx", ".doc", ".pdf" }))
.Validation(validation => validation.MaxFileSize(3145728))
.DropZone(".whole-section")
.Events(events => events
.Cancel("onCancel")
.Clear("onClear")
.Complete("onComplete")
.Error("onError")
.Progress("onProgress")
.Remove("onRemove")
.Select("onSelect")
.Success("onSuccess")
.Upload("onUpload")
)
)
</div>
Let me know if there is a way to only drop the files which are in error state (too big, doc type)