Closed rswetnam closed 11 years ago
AddFormField method takes two string arguments. first one is the key which would be the form field id and second one is the value of that html hidden field submitted with each upload. you should try this
@(Html.MvcFileUpload()
.UploadAt(Url.Action("UploadFile", "MvcUploaderTest"))
//Pass item.Id as string to AddFormField
.AddFormField("entityId", item.Id.ToString())
.RenderPopup("Upload Lesson", "#dlgFileUpload", new { @class = "btn" })
)
Hi:
I'd like to use the the MVCFileUploader to upload files associated with rows in a grid.
I've placed the button to call it in a cell in a grid as follows:
@foreach (var item in Model.CourseModules) {
}