Step 1: Create a blank ASP.NET WebForm Project.

Step 2:
Right click on the Project ==>select NuGet Package Manager ==> Select DropZone and Download it.

Step 3: Design a WebForm having a file upload control.
Code
  1. <head runat="server">
  2. <title></title>
  3. <script src="scripts/dropzone/dropzone.min.js"></script>
  4. <link href="scripts/dropzone/basic.min.css" rel="stylesheet" />
  5. <link href="scripts/dropzone/dropzone.css" rel="stylesheet" />
  6. <script src="scripts/ai.0.15.0-build58334.min.js"></script>
  7. </head>
  8. <body>
  9. <form id="form1" runat="server" class="dropzone">
  10. <div>
  11. <div class="fallback">
  12. <asp:FileUpload ID="file" runat="server" AllowMultiple="true" />
  13. </div>
  14. </div>
  15. </form>
  16. </body>
  17. </html>
Step 4: Write the following code in the code behind(.cs) file.
Code
  1. protected void Page_Load(object sender, EventArgs e)
  2. {
  3. foreach (string s in Request.Files)
  4. {
  5. HttpPostedFile file = Request.Files[s];
  6. int fileSizeInBytes = file.ContentLength;
  7. string fileName = file.FileName;
  8. string fileExtension = "";
  9. if (!string.IsNullOrEmpty(fileName))
  10. fileExtension = Path.GetExtension(fileName);
  11. // IMPORTANT! Make sure to validate uploaded file contents, size, etc. to prevent scripts being uploaded into your web app directory
  12. // string savedFileName = Path.Combine(@"..\Files\", Guid.NewGuid().ToString() + fileExtension);
  13. string savepath = Path.Combine(Request.PhysicalApplicationPath, "Files");
  14. string savefile = Path.Combine(savepath, file.FileName);
  15. file.SaveAs(savefile);
  16. }
  17. }
Step 5: Run the project and select multiple files and drag to the box.

Step 6: Drag and drop all the images to the box. It will upload the images and save them to your local folder (here in Files Folder).