Skip to content

Dynamically adding the form fields in the html helper #17

@JasonHaines

Description

@JasonHaines

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")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions