I have a form with one image-upload and a Submit button..
When i press the submit button, I can read the uploaded-image info in my controller (see image 1 )
The problem is, when i from this controller pass the uploaded-image info to another controller, see image 2
The "another" controller dont get the image info, its HttpPostedFileBase is null / 0
Why does it do that, what can I do ?
[HttpPost]
[UserAuthorize(Roles = "User")]
[ValidateAntiForgeryToken]
public ActionResult NewProject(NewUserProjectViewModel model)
{
return RedirectToAction("previewProject", model);
}
[UserAuthorize(Roles = "User")]
public ActionResult previewProject(NewUserProjectViewModel model)
{
return View(model);
}