CoffeeCup Support Knowledge Base

My images are being referenced on the hard drive

To correct the issue of images being referenced absolutely on the hard drive, you'll need to perform a two-step process.

First, setup a new project using your existing website. You'll need to do this even if you've been saving everything in the Working directory. Click the Projects tab, then click the New Project button (globe w/folder icon). This will ask you to choose a name and location for your project. You can name the project anything you'd like, and click the "Browse" button (folder icon) to select the folder with your html files.

Anytime you open up the files within that project, the Editor will use relative paths for images and links to the other pages in that folder. The next task is to correct the code for your current site so it too uses relative paths.

Open your page and switch to Code Editor. For each image, you'll find an image tag and src attributes:

<img src="file://C:\Program Files\CoffeeCup Software\Working\filename.jpg">
This references the files directly on the hard drive and is the cause of all the problems. You'll need to delete the path before the filename so the image will display correctly. The code should then look like this:
<img src="file.jpg"> if your images are in the same location as your html files
or
<img src="images/file.jpg"> if your images are in a sub-folder of your site.

Once all the image paths have been changed, you can save the file and upload it to the server. If you're still experiencing problems, you can contact us with a link to your site and we'll take a look at it to help you find a solution.

Rate This Article

You must be logged in to rate articles.

Download Our Software:

... and don't forget about our Free Software