telerik / kendo-angular

Issue tracker - Kendo UI for Angular
http://www.telerik.com/kendo-angular-ui/
Other
469 stars 217 forks source link

The server cannot receive the uploaded file collection #2815

Closed fengzhihenxs closed 4 years ago

fengzhihenxs commented 4 years ago

Using the latest version of the upload on the angular9 project, when I upload a file, I can request the api interface of the server, but I cannot receive the uploaded file collection, but the previous lower version upload is OK, why?

Code show as below Client: html : <kendo-upload [saveUrl]="uploadSaveUrl">

ts: uploadSaveUrl = '/api/upload';

Server: [HttpPost] public IHttpActionResult upload() { try { HttpFileCollection files = HttpContext.Current.Request.Files;

    }
    return Ok("success2");
  }
  catch (Exception)
  {

    return BadRequest();
  }

}
fengzhihenxs commented 4 years ago

There are no files in the files object

Raisolution commented 4 years ago

Hi @fengzhihenxs

This repository is for bug reports only. Please open a support ticket for assistance with implementing specific scenarios or configuration.

fengzhihenxs commented 4 years ago

Has been resolved, thank you