Quantcast
Channel: Web API
Viewing all articles
Browse latest Browse all 4850

Need a list with the actual files or arraylist of files

$
0
0

I have a method and I need to pass a group files to another method, please help me resolve this...

[System.Web.Http.HttpPost]public ActionResult GetDocon(FormCollection Form)
{   var Model = new DocData();               try      {        HttpPostedFileBase[] DisplayFiles new HttpPostedFileBase[Request.Files.Count];  <-- Need a list with the actual files        var GetListFiles = new List<string>();        if (Request.Files != null)        {           // do something with files        }        SendFiles_AWSS3(DisplayFiles);  <-- Need to pass the actual files to this method (this should be 1 or more files)      }      catch (Exception Ex)      {                }          return RedirectToAction("ShowFiles", TempData["DisplayFiles"]);
}


Viewing all articles
Browse latest Browse all 4850

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>