This is a migrated thread and some comments may be shown as answers.
ImageUpload "A directory with this name was not found."
0 Answers 35 Views
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Rinat
Top achievements
Rank 1
Rinat asked on 24 Jun 2011, 09:47 AM
I specify a folder for uploading images to a server by creating a class:
public class ImageBrowserController : EditorFileBrowserController
{
    public override string[] ContentPaths
    {
        get
        {
            return new[] { "~/Content/Upload" };
        }
    }
}
And faced with a problem - when I press the "Insert Image" button I get the error: "A directory with this name was not found.". I guess it's because my View lies in Areas, so there is no treatment for this class. What I need to do? :C
Tags
Editor
Asked by
Rinat
Top achievements
Rank 1
Share this question
or