marufbd / MvcFileUploader

A nuget package for easy blueimp JQuery file upload plugin integration into an ASP.NET Mvc application
MIT License
39 stars 22 forks source link

Dynamically adding the form fields in the html helper #17

Open JasonHaines opened 9 years ago

JasonHaines commented 9 years ago

We are using the MVCUploader in one of our projects. The project includes files and form data. Our problem is the form data fields can vary from upload to upload. Is there a way in the html helper to dynamically load the .AddFormFields

Html.MvcFileUpload() .UploadAt(Url.Action("UploadFile")) .UIStyle(ui) .MaxNumberOfFiles(maxFilesThatCanBeUploaded) .WithMaxFileSize(5000000) ... Produce this N number of times based on business logic .AddFormField("Name", "Fred")

    .RenderInline("_MvcFileupload")
grovesy69 commented 9 years ago

Hi, I have the same issue, I just want to be able to loop form data as per the original post. Is there any update on a solution for this? Thanks Louise