Copied to clipboard

Flag this post as spam?

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


  • Anders Haahr 26 posts 31 karma points
    May 10, 2011 @ 00:32
    Anders Haahr
    0

    umbracoReservedPaths - what am I missing?

    In an Umbraco 4.7.0 project I would like to have an /images folder in which I will put (image) files and I will refer to those files from the markup and css.

    Now, if I refer to one of the images files in my images folder I get the following error:

    No umbraco document matches the url 'http://www.website.local/login.aspx?ReturnUrl=/images/image1.jpg'

    umbraco tried this to match it using this xpath query'/root/* [@urlName = "login"] | /root/*/* [@urlName = "login"]')

    Pretty strange xpath to attempt to match, but I guess it is Umbraco's request handler that catches the request, so I have tried adding /images/ to the umbracoReservedPaths key in web.config which did not change anything. I have also tried adding both /images and ~/images/, all causing the same error.

    Next thing I tried as workaround was adding the files in a subfolder for the css folder (this is done in at least one of the skins so I figure I could do the same). Partial success. Now I can see image1 on the page and I can refer to it directly like http://www.website.local/css/subfolder/image1.jpg. But the strange thing is that this does not work for image2, 3 and 4. Lol. http://www.website.local/css/subfolder/image1.jpg works, but http://www.website.local/css/subfolder/image2.jpg and so forth still gives me the same error.

    So ppl, please explain to me what I am missing here or how image files living somewhere under the same root domain is supposed to be handled in Umbraco 4.7.0.

     

    Thank you in advance.

     

     

  • skiltz 501 posts 701 karma points
    May 10, 2011 @ 06:24
    skiltz
    0

    In your web.config in AppSettings there is a "umbracoReservedPaths" key.  Add images to it.

     <add key="umbracoReservedPaths" value="~/umbraco,~/install/,~/images/" />
  • Chriztian Steinmeier 2726 posts 8320 karma points MVP 4x admin c-trib
    May 10, 2011 @ 09:11
    Chriztian Steinmeier
    1

    Sounds a little strange - I've never had to add /images/ to umbracoReservedPaths to get this working.

    It seems the webserver has been misconfigured to treat .jpg extension as a document and not a static image file.

    /Chriztian

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies