Skip to main content
Participant
February 22, 2023
Question

problem accessing image and document files from my html page

  • February 22, 2023
  • 4 replies
  • 750 views

hi - i'm having problems with both my HTML webiste hosted page(s) and the local host test system. if i use a href or src referenence in a tag and a relative address (eg src="/Images/mypicture.png"), when i run it, i get a file not found or nothing. any suggestions? i was able to make it work from within dreamweave by using an absolutte address on my computer.

i'm confused. 

This topic has been closed for replies.

4 replies

Participant
February 23, 2023

Ben - i was able to successfully load the logo on the products.html page. i suppose i should have tried this earlier, but when you indicated the folders did not exist, then i moved the files to the top level and it worked. i appreciate all the suggestions and feedbaack. sometime tonight i'll get a chance to walk through them, but for now i'm relieved. now i have to make look decent.

thanks again.

Jim

Nancy OShea
Community Expert
Community Expert
February 22, 2023

HostGator uses cAsE sEnSiTiVe servers. 

But your server has neither an Images nor an images folder on it (404 not found).

Upload folders & files again.

 

 

Nancy O'Shea— Product User & Community Expert
Nancy OShea
Community Expert
Community Expert
February 22, 2023

When you defined your site in Dreamweaver, (Site > New Site...) did you specify the server's ROOT directory and upload files & folder to that directory? 

 

Also, did you specify Document Relative vs Site Root relative links?  See screenshot.

 

 

If settings are correct, I would upload all files and folders again.

 

 

Nancy O'Shea— Product User & Community Expert
Community Expert
February 22, 2023

If the file is not found the path is not good, simple as that. Also you are sounding confusing with relative vs. absolute addresses.  A relative address is what you are showing us, whereas an absolute address is like https://.  

 

The fact that you are experiencing this live and locally tells me the file doesn't exist in the site and it's not uploaded to the server either.  How about we start on the server side to make sure that is working and you share a link with us to a page where we can view your code.

Participant
February 22, 2023

that's fine. i can create a link to my repository, but it wouldn't be active. i'm using HostGator as the host, so i don't think i can get a link directly to hostgator. any suggestions? part of the problem is that the code was originally generated using WebBuilder on another hosting company. so i'm trying to do a couple modifications on the HTML that was ported over to HostGator (by HostGator). or you could use Chrome to look at the problem (www.cosmiic.org/products.html). i'm reasonable certain i've uploaded the files to the public_html directory in the right places. one thing i have not explored is there is a fair amount of css in the souirce and i wonder if there's any control feature. the code came to me with a src="xxx" to a webbuilder site with an full adddress and what I suspecct is a password. if i substitute the original back in, it works but with the image i'm trying to replace.

Community Expert
February 22, 2023

The link helped a ton. There's definitely something not moved right on the server. The entire folder "Images" is throwing a 404 error (https://www.cosmiic.org/Images/ ).  Being that the addresses are all absolute (https://) that explains why they are not loading on your local site either.  Because that doesn't exist, neither do the images. I would try re-uploading the Images folder yourself to the site and that should solve your issue.