I have multiple KendoUpload control in my page and I have a custom submit button. By clicking submit whichever upload control having data those to be submitted to dot net core controller part. I am good to submit one KendoUpload value, but not able to pass multiple upload values into controller part at one shot.
I am also passing other input values along with upload file. This is a single upload process, I am following. In the controller part, I am receiving by IFormFile.
Any suggestion?
public async Task<IActionResult> UploadImage(IEnumerable<IFormFile> files, ReportComponentVM subVM)
{
try
{
if (files != null)
{
await AttachmentFileSave(false, files.FirstOrDefault(), "test", "test2",1);
}
return Json(new JsonResponse { Message = "UploadImage", IsSuccess = true });
}
catch (Exception ex)
{
return Json(new JsonResponse { Message = ex.Message, IsSuccess = false });
}
}