title: DropzoneJs in Asp.net core application not uploading files
body: <p>I am trying to use DropzoneJS to upload multiple photos to a webapplication.</p>
  
  <p>The Upload view contains following</p>
  
  <pre><code>&lt;div class="jumbotron"&gt;
      &lt;form action="/Upload"
            class="dropzone"
            id="dropzoneJsForm"
            style="background-color:#00BFFF"&gt;&lt;/form&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>And the Upload controller contains this</p>
  
  <pre><code>[HttpPost]
  public async Task&lt;IActionResult&gt; Upload(IFormFile file, IHostingEnvironment _environment)
  {
      var uploads = Path.Combine(_environment.WebRootPath, "uploads");
      if (file.Length &gt; 0)
      {
          using (var fileStream = new FileStream(Path.Combine(uploads, file.FileName), FileMode.Create))
              {
                  await file.CopyToAsync(fileStream);
              }
      }
      return RedirectToAction("Index");
  }
  </code></pre>
  
  <p>When I run the application in debug mode and add files I see the progressbar and the checkmark indicating success. But no files has been uploaded in the upload folder in wwwroot.</p>
  
  <p>I have app.UseStaticFiles() in the Configure method.</p>
  
  <p>Target framework: .Net Core 2.0</p>
  
  <p>I am using Visual Studio 2017 Professional latest version</p>