public async Task<ActionResult> Index(MyModel entity, List<HttpPostedFileBase> files)
{
foreach (var person in persons)
{
if (files != null && files.Count > 0)
{
foreach (HttpPostedFileBase file in files)
{
if (file!= null && file.ContentLength > 0)
{
تو این قسمت برای اولین person، file ها رو میخونه و مشکلی نیست.
اما از دومین person به بعد، file.ContentLength=0 هست
}
}
}
}
}
برچسب:
نویسنده: خنج