Hi :
I am using Asp .net Core to upload multiple files using the Dropzonejs ,it works fine without using the Dropzonejs , but I don't know why it is not work with it.
var uploads = Path.Combine(_environment.WebRootPath, "uploads");
var filenames="";
foreach (var file in files)
{
if (file.Length > 0)
{
using (var fileStream = new FileStream(Path.Combine(uploads, file.FileName), FileMode.Create))
{
await file.CopyToAsync(fileStream);
//await file.SaveAsAsync(fileStream);
filenames += file.FileName;
}
}
}