MVC: How to post File Upload and other form fields to one action
I am creating a document library application with a DocumentController that needs to upload a thumbnail image of each doument in the library. I want to keep the File Upload field on the same Create/Edit form as the other fields (Title, Description, CategoryId etc). The problem is I'm not sure if I can mix or nest the form tags for Html.BeginForm("Create", "Document", FormMethod.Post, enctype = "multipart/form-data") and Html.BeginForm() My view is as follows: <%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<Publications.WebUI.Models