EditorFor widget

2 posts, 0 answers
  1. Impel
    Impel avatar
    1 posts
    Member since:
    Dec 2009

    Posted 18 Aug Link to this post

    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
  2. Dimitar
    Admin
    Dimitar avatar
    217 posts

    Posted 22 Aug Link to this post

    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.
Back to Top