convert HttpPostedFileBase file
into a list and update your view to allow multiple uploads as follows
controller
[HttpPost]
public ActionResult Form(List<HttpPostedFileBase> files, DateTime dateParution, long IdJournal, string numEditionJournal)
{
var db = new Bd_scanitEntities();
IEnumerable<SelectListItem> items = db.JournalSet
.Select(c => new SelectListItem
{
Value = c.Id.ToString(),
Text = c.label
}).OrderBy(c => c.Text);/*_*/
ViewBag.IdJournal = items;
ScanITAPP.Service.ImageRender service = new Service.ImageRender();
foreach(HttpPostedFileBase file in files){
service.UploadImageToDB(file, dateParution, IdJournal, numEditionJournal);
}
return RedirectToAction("Index");
}
Then you may need to edit your view in order to allow multiple uploads
.... <input type="file" multiple="multiple" name="files" id="upload"/>
as you files may be huge, DONT FORGET TO INCREASE THE REQUEST LENGTH IN YOUR WEB CONFIG FILE.
*** Edit **** There was a mistake between the input type wich should be file and the name files wich will be used for the automatic parameters by MVC