mvc3 file upload using ajax form - Request.Files empty
问题 Im using mvc3, and am trying to create a series of ajax forms that each upload a file, within a single page. Here's the view for the page: @{ ViewBag.Title = "Index"; } <h2> Index</h2> @Html.Partial("_UploadItem") @Html.Partial("_UploadItem") @Html.Partial("_UploadItem") <script type="text/javascript"> function Go() { // loop through form tags for (var n = 0; n < document.forms.length; n++) { var f = document.forms[n]; // if a dress is chosen, a caption is chosen // and a file is chosen, then