HI,
we're using the Upload control like this:
Client:
@(Html.Kendo().Upload()
.Name("images")
.Async(a => a
.Save("SaveImages", "Box")
.Batch(false)
.AutoUpload(true)
)
.HtmlAttributes(new { accept = "image/*" })
.Events(e => {
e.Upload("upload");
e.Remove("remove");
})
.DropZone(".dropZoneElement")
.ShowFileList(false)
.Validation(v => v.AllowedExtensions(new string[] { ".jpg", ".jpeg", ".png", ".bmp", ".gif" }))
)
// https://docs.telerik.com/kendo-ui/knowledge-base/upload-mvc-send-additional-data
function upload(e) {
e.data = {
id: @Model.ID
};
}
function remove(e) {
e.data = {
id: @Model.ID
};
}
Server:
public ActionResult SaveImages(IEnumerable<HttpPostedFileBase> images, int id)
{
var ids = new Dictionary<string, int>();
if(id > 0)
{
foreach (var image in images)
{
...
}
}
return Json(ids);
}
A customer of ours now has the problem, that when uploading multiple images the images-Parameter on server-side is null. Uploading single images is working. The problem is only occuring on tablets.
We currently cannot reproduce this behaviour. Is there anything we must know here which can lead to this behaviour?