This is a migrated thread and some comments may be shown as answers.

EditorFor widget

1 Answer 77 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Impel
Top achievements
Rank 1
Impel asked on 18 Aug 2017, 10:20 AM
I’m using Kendo Telerik for ASP .NET MVC, version 2017.2.621. I have encountered an issue with the EditorFor widget - during the adding image proces I’m getting the „A directory with this name was not found” error. The previous version (2016.3.1118) was working correctly, the described issue appeared after the update. Please assist

1 Answer, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 22 Aug 2017, 07:26 AM
Hello Piotr,

I am attaching an MVC solution where you can find a Kendo UI Editor implementation with configured ImageBrowser. With it, the image upload and insertion in the Editor content works as expected.

Please refer to the ImageBrowserController in the above project and verify that a check is performed for initially creating the images folder in the CopyFolder method:
private void CopyFolder(string source, string destination)
{
  if (!Directory.Exists(destination))
  {
    Directory.CreateDirectory(destination);
  }
     
  ... 
}

The above will force the images folder to be created the first time that an image file is uploaded. After this, the files should be properly uploaded to the specified folder. 

I hope this helps you to resolve the issue. In case you have any other questions, please let me know.

Regards,
Dimitar
Progress Telerik
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Editor
Asked by
Impel
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
Share this question
or