Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Ted Jardine 98 posts 120 karma points
    Dec 19, 2010 @ 09:21
    Ted Jardine
    0

    Directory tree not showing in Import Media dialog

    I'm greatly looking forward to using this plugin, but unfortunately, the directory tree in the import media dialog is not showing any directories or files (even though I've set the directory properly in importMedia.config). I'm using a new installation of 4.5.2 on IIS 7 running under ASP.NET 4.0 with integrated pipeline. Is there a data type I need that's not part of the 4.5.2 install?

    I've also made sure that there are all different file types (gif, jpg, png, and pdf) in my directory I want to import from (although I intend to just do PDFs), so it's not that there aren't files there.

    This is what's showing:

    And here's my importMedia.config:

    <?xml version="1.0" encoding="utf-8" ?>
    <settings>
        <folders>
            <!-- Add as many import directories as you wish -->       
            <folder>/data/pdf/</folder>
        </folders>
        <images thumbnailMaxWidthHeight="100" />
    </settings>
  • Simon Dingley 1470 posts 3427 karma points c-trib
    Dec 19, 2010 @ 13:07
    Simon Dingley
    1

    Try making your path relative to the application root using a tilde as otherwise it may be looking for your import folder relative to the import dialog.

    Example:

    <?xml version="1.0" encoding="utf-8" ?>
    <settings>
       
    <folders>
           
    <!-- Add as many import directories as you wish -->        
           
    <folder>~/data/pdf/</folder>
       
    </folders>
       
    <images thumbnailMaxWidthHeight="100" />
    </settings>

    I will make a note to update the shipped config file to make this more obvious. Please let me know how you get on and if this resolved the issue please vote and mark the solution for others.

  • Ted Jardine 98 posts 120 karma points
    Dec 19, 2010 @ 22:54
    Ted Jardine
    0

    Simon,

    Thanks ever so much as that solved that issue (although it *should* have been fine with it rooted to the app root with the /). Thank you for the prompt reply and for the plugin!

    Ted

  • Simon Dingley 1470 posts 3427 karma points c-trib
    Dec 19, 2010 @ 23:26
    Simon Dingley
    0

    Hey Ted, glad you got it sorted however after some testing I found that your original path worked after touching the web.config which leads me to believe there may be some caching issue with the config somewhere.

    Please take a moment to vote for the package if you like it and also mark my response as the solution for the benefit of others.

    Cheers, Simon

  • Ted Jardine 98 posts 120 karma points
    Dec 19, 2010 @ 23:33
    Ted Jardine
    0

    Done and done.

    All my entries were similar so possibly just cached the first default one which would have *worked* except it doesn't exist on my system (and therefore an empty directory tree). I thought I touched the Web.config to restart to see if that helped, but I must not have.


    Thanks.

    Ted

Please Sign in or register to post replies

Write your reply to:

Draft