Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FileBrowser and ImageBrowser Upload method throws an exception in ASP.NET Core 2.0 #3839

Closed
Juveniel opened this issue Dec 11, 2017 · 4 comments

Comments

@Juveniel
Copy link
Contributor

Juveniel commented Dec 11, 2017

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]
@renatobarbato
Copy link

Hi,
there are any news on this bug resolution?

@gvovka
Copy link

gvovka commented Feb 10, 2018

Use these controllers Controllers.zip

@zdravkov zdravkov added this to the 2018.R2 milestone Feb 23, 2018
@mparvanov
Copy link
Contributor

Still reproduced with internal version 2018.2.226.
TelerikAspNetCoreApp2.zip

@renatobarbato
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants