i use a local installation of drupal 6.1. in a xampp enviroment under Windows.
i created a page content with some image tags. The image tags have the proper src, for instance,

sites/default/files/image001.png.

As long the content is seen at the front page, all images are displayed, or better said, all images paths
point to the right locations:

localhost/drupal/sites/default/files/image001.png (in my case).

After clicking on the content title to read the node, the images could not be found anymore, their
paths point to wrong locations:

localhost/drupal/node/sites/default/files/image001.png, for instance, whereas the location does not exist.

So, what is wrong, or maybe, what i am doing wrong ?

Comments

jainrutgers’s picture

What are you using to upload the image?

carl-eL’s picture

due to the fact i develop locally, there is no need to upload an image, you just put the image into a folder.

vipin.kumar’s picture

I am also having the same problem.
As far as home page is concerned the URL for image is OK (http://localhost/drupal/sites/default/files/image_name.jpg) but after clicking the content title the url changes to (http://localhost/drupal/node/1) and the URL of image will become (http://localhost/drupal/node/sites/default/files/image_name.jpg) which is logically incorrect for image because there is no folder named 'node' under 'drupal' folder on localhost, that's why no image will be displayed on (http://localhost/drupal/node/1) page, which is after leaving the home page.
There is two alternate way to get your image back, but I think this is the worst solution for this issue:
First is : Disable clean URLs feature and image will be displayed.

Second is satisfactory in some way because it works with Clean URLs:
enable path module from Administer -> Site Building -> Modules
and then edit your content page and give a name to your page under "URL Path settings".

I also don't have a good solution to fix this problem yet.

dunerider’s picture

I too have this issue but I am developing my site online.

In my page content i include an image with the code Only local images are allowed. but the image doesnt show online as the path is translated into domain/node/meats.jpg the image is actually at domain/meats.jpg

(once i get the node bit sorted i'll put my images in an image folder)

how do i resolve this please??

naveeddil’s picture

Anyone with any solution after 2 years on Drupal 7 ?