locked
Showing images on FCKEditor RRS feed

  • Question

  • User2018862744 posted

    Hi,

    I have a FCKEditor control on my .aspx page and i'm trying to load in the editor an html file that i have.

    My structure is something like this:

    \Application\page.aspx
    
    \Application\File\file.html
    
    \Application\File\fileimage.png

    In the .html file the image is referenced as fileimage.png since it is in the same folder as the .html and it opens without any problem.

    If i change the image path on the html page and put the absolute path (something like "C:\....\File\fileimage.png" ) it works on my production server without problems, as expected. However, when testing from a client machine, the image is not shown as the path "C:\....\File\fileimage.png" in the client machine doesn't mean anything and the image isn't there at all. 

    So my question is, what path sould i give to the image that will allow her to be viewed from any client machine?

     

    Best regards,

    Wednesday, March 2, 2011 1:30 PM

Answers

  • User2018862744 posted

    So i reached the solution by myself, i changed to relative paths starting from my application forward as in "/Application/..../image.jpeg".

    By doing this, i'm able to see the images on my development machine and in my clients machines.

     

     

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, March 7, 2011 7:57 AM