We are currently working with the Upload control in what would seem to be a very simple setup.
@(Html.Kendo().Upload()
.Name("files")
.ShowFileList(false)
.Multiple(false)
.Async(a => a
.Save("Save", "Patient")
.AutoUpload(true)
.SaveField("files")
)
.Validation(validation => validation.AllowedExtensions(new string[] { ".gif", ".jpg", ".png" }))
)
and our controller is defined as such
[HttpPost]
public
async Task<IActionResult> Save(IEnumberable<HttpPostedFileBase> files)
What is happening is that the files parameter is not null but has a count of 0. This is in an ASP.NET core MVC app.
What could the issue be? Is there something simple we are missing here?
Thanks
AJ