+1-888-365-2779
Try Now
More in this section

Forums / Bugs & Issues / Image folder in root

Image folder in root

9 posts, 0 answered
  1. Shalaka
    Shalaka avatar
    50 posts
    Registered:
    24 Mar 2011
    03 Mar 2012
    Link to this post
    Hi,
    I am developing a project in sitefinity 4.4. I am having a foler 'Images' under my root folder.
    I hosted my site on IIS and now i am not able to view the images on my site.
    I changed the folder name to 'Images_Test' and then it works fine.

    Is there any issue with the folder name - 'Images' in sitefinity 4.4?

    Please reply urgently.. i need to change my code as per....

    Thanks & Regards,
    Shalaka.


  2. Ben
    Ben avatar
    35 posts
    Registered:
    24 Jan 2011
    05 Mar 2012
    Link to this post
    Hi Shalaka,

    Lots of people (including myself) have experienced this same issue.  Here's a thread that might help you.  
    SF 4.1 does not server static images properly (404 error)
    http://www.sitefinity.com/devnet/forums/sitefinity-4-x/general-discussions/sf-4-1-does-not-server-static-images-properly-404-error.aspx 

    Basically you can either rename your own "images" folder as you already know, or you can go thru the sitefinity admin and change the default images folder where sitefinity stores files, found here:
     ~/Sitefinity/Administration/Settings/Advanced>Libraries>Images>UrlRoot (Change to "sf-images" or something similar). If you're building a new site from scratch, I recommend just changing your own images folder as you have already done, since the URLRoot method sometimes yields mixed results. 
  3. Markus
    Markus avatar
    2763 posts
    Registered:
    25 Nov 2005
    05 Mar 2012
    Link to this post
    Dear Shalaka

  4. Grace Hallwachs
    Grace Hallwachs avatar
    144 posts
    Registered:
    03 Nov 2014
    06 Mar 2012
    Link to this post
    Hi,

    “Images” is the default root mapping for images stored in Sitefinity’s Libraries module. In version 4.1, Sitefinity’s virtual paths cannot match with physical paths for Libraries.

    This is necessary for performance reasons with version 4.1. To avoid this conflict you have to rename the physical folder or change the virtual root in Libraries configuration. To change the configurations please go to:~/Sitefinity/Administration/Settings/Advanced>Libraries>Images>UrlRoot  and change the value to something like “sf-images”.

    Please let me know if you have anymore questions.

    All the best,
    Grace Hallwachs
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  5. Shalaka
    Shalaka avatar
    50 posts
    Registered:
    24 Mar 2011
    06 Mar 2012
    Link to this post
    Thanks All For your quick reply....

  6. Maria
    Maria avatar
    4 posts
    Registered:
    04 Apr 2011
    05 Nov 2012 in reply to Grace Hallwachs
    Link to this post
    I am having the same problem. My html images within my master page are broken. Unfortunately, changing the name of my images folder did not work. Any other suggestions?

    I appreciate your time and help,

    Maria
  7. Maria
    Maria avatar
    4 posts
    Registered:
    04 Apr 2011
    05 Nov 2012 in reply to Maria
    Link to this post
    I just got it to work!! I had to form my image link to this source: "../../../../../sf-images/logo.png"

    Why won't it work with "~/sf-images/logo.png"?

    Regardless, I'm glad this is working now :)

    Maria
  8. Steve
    Steve avatar
    3037 posts
    Registered:
    03 Dec 2008
    05 Nov 2012 in reply to Maria
    Link to this post
    Hey Maria,
      The ~ only works if you have runat="server" on an asp.net control...so it can be resolved by asp.net.

    In plain html though its just "/sf-images/logo.png".

    I prefer that route over ../../../../../ especially in widgets because the image will only resolve on a page at that level.

    Cheers!
  9. Maria
    Maria avatar
    4 posts
    Registered:
    04 Apr 2011
    05 Nov 2012 in reply to Steve
    Link to this post
    Ah, yes that makes total sense! Thank you for this information. I know where I need to make my changes now. :)

    Maria
9 posts, 0 answered