FileBrowser not showing

2 posts, 0 answers
  1. Owen
    Owen avatar
    2 posts
    Member since:
    Sep 2014

    Posted 30 Mar 2016 Link to this post

    I've been using the demo to set up an Image and File browser for my editor.

    The image browser seems to be working fine but the file browser doesn't open, I just get the standard window pop up.

    I am have added the custom controller code in the same way, inherited and maintained the naming, and using the default routing for my application.

    Any ideas of what could be wrong?



    .ImageBrowser(imageBrowser => imageBrowser
    .Image("~/Content/ProjectFiles/" + (Model.RelatedProjectId > 0 ? Model.RelatedProjectId.ToString() + "/" : "") + "{0}")
    .Read("Read", "ImageBrowser")
    .Create("Create", "ImageBrowser")
    .Destroy("Destroy", "ImageBrowser")
    .Upload("Upload", "ImageBrowser")
    .Thumbnail("Thumbnail", "ImageBrowser"))
    .FileBrowser(fileBrowser => fileBrowser
    .File("~/Content/ProjectFiles/" + (Model.RelatedProjectId > 0 ? Model.RelatedProjectId.ToString() + "/" : "") + "{0}")
    .Read("Read", "FileBrowser")
    .Create("Create", "FileBrowser")
    .Destroy("Destroy", "FileBrowser")
    .Upload("Upload", "FileBrowser"))


    public class FileBrowserController : EditorFileBrowserController
    private const string ContentFolderRoot = "~/Content/";
    private static readonly string[] FoldersToCopy = new[] { "~/Content/shared/" };






  2. Niko
    Niko avatar
    404 posts

    Posted 30 Mar 2016 Link to this post

    Hello Owen,

    Unfortunately I wasn't able to reproduce the problem that you are facing.

    Please, check if there are any JavaScript errors on the page or if you get an 200 HTTP response from the server when loading the files data.

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top