Kendo-ui-core: FileBrowser and ImageBrowser Upload method throws an exception in ASP.NET Core 2.0

Created on 11 Dec 2017  路  4Comments  路  Source: telerik/kendo-ui-core

Bug report

The current FileBrowser/ImageBrowser Upload method implementation (IFormFile) throws a "Method not found" exception in ASP.NET Core 2.0 applications.

Reproduction of the problem

TelerikAspNetCoreAppImageBrowser.zip

Current behavior

image

Expected/desired behavior

Current implementation should be adjusted according to the Microsoft.Net.Http.Headers changes in Core 2.0.

Workaround

Override the GetFileName method:

public override string GetFileName(IFormFile file)
{
  var fileContent = ContentDispositionHeaderValue.Parse(file.ContentDisposition);

  return Path.GetFileName(fileContent.FileName.ToString().Trim('"'));
}

Environment

  • Kendo UI version: 2017.3.1026
  • Browser: [all]
Bug Editor Priority 3 Wrappers (ASP.NET Core) High jQuery2

Most helpful comment

Use these controllers Controllers.zip

All 4 comments

Hi,
there are any news on this bug resolution?

Use these controllers Controllers.zip

Still reproduced with internal version 2018.2.226.
TelerikAspNetCoreApp2.zip

Hi @gvovka ,
just tried, and controllers.zip worked for me.
Thank you

Was this page helpful?
0 / 5 - 0 ratings