Dropzone – .Net Core

om bestanden op te laden met Dropzone naar .Net Core

In Dropzone:

 Dropzone.options.myDropzone = {
                uploadMultiple: true,
                paramName: () => "files",
}

In controller:

[HttpPost]
[ValidateAntiForgeryToken]
public IActionResult Bewaren(List<IFormFile> files)
{
    int counter = files.Count();
    return Ok();
}

 

Categories:

Related Article