i cant get Request.Files "it allways give me the count is 0"
I added this to create view
based on this article
https://www.nopcommerce.com/boards/t/20491/shipping-plugins-configuration-with-pop-up-window-beginform-helper.aspx
@using (Html.BeginForm("Create", "ArticleCategory",FormMethod.Post, new { enctype = "multipart/form-data" }))
on _CreateOrUpdate.cshtml i added
<input id="FileBanner" type="file" />
on controller
[HttpPost, ParameterBasedOnFormNameAttribute("save-continue", "continueEditing")]
public ActionResult Create(ArticleCategoryModel model, bool continueEditing)
{
try
{
HttpPostedFileBase FileBanner= Request.Files["FileBanner"];
string filename = Server.MapPath("~/Content/Images/" + FileBanner.FileName);
fileLogo.SaveAs(filename);
model.Banner= filename;
}
catch (Exception exc)
{
throw exc;
SuccessNotification( _localizationService.GetResource("Admin.Articles.ArticleCategory.errorlogo"));
return View(model);
}
}
but still m getting Request.Files["fileLogo"] null !!!