tags:

views:

46

answers:

1

Hi All,

I am facing one serious problem

Technology: Asp.net mvc

I am trying to upload multiple files from the dynamically created file upload control from javascript.(Attach more file Options).My files are not getting posted to the mvc controller action.i have specified the propert new { enctype = "multipart/form-data" } in my form still the file is not getting posted.

NB:

1)The file from the first file upload control(which is shown on the first page load is getting posted but the rest which is added using attach more file option is not getting posted)

Many Thanks in advance.

A: 

I am using with asp.net mvc for multiple file upload this jquery plugin and it works well: http://www.fyneworks.com/jquery/multiple-file-upload/

In the view you have to include something like this:

<input name="attachments" type="file"/>

And then you have to make an action method in the controller that waits for List<HttpPostedFileBase> attachments

If you can not make your current solution to work this plugin worth a try....

apolka