How to upload multiple images with just 1 click?

1

I'm studying uploading images and files, and I can upload 1 image, and display it on the screen, but I'm interested in uploading multiple images with just one button, just like that web application link . How to upload multiple images?

I'm using asp.net.mvc 5.1.

    
asked by anonymous 06.03.2014 / 15:41

2 answers

2

You can use the jQuery File Upload plugin created by blueimp:

link

You can install the plugin through nuget. Just go to the Package Manager , and search for blueimp . You will see the plugin itself, and some samples of how to use it with MVC.

You can also install from the console. Below the respective pages in the nuget gallery:

  • Plugin: link

    PM> Install-Package JQuery_File_Upload_Plugin
  • Example: link

    PM> Install-Package JQueryFileUpload_Demo_with_Backload
  • Example: link

    PM> Install-Package Backload
06.03.2014 / 15:50
2

You can also specify in the <input> the multiple="true" attribute, so you can select multiple images at the same time.

    
06.03.2014 / 19:55