Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

problem accessing image and document files from my html page

New Here ,
Feb 22, 2023 Feb 22, 2023

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. 

TOPICS
Code , Error , How to
698
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 22, 2023 Feb 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Feb 22, 2023 Feb 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 22, 2023 Feb 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Feb 22, 2023 Feb 22, 2023

Ben - thanks for looking at this. i'm uploading the products.html that has the syntax for the logo that i would have expected to work. i'm also including the referenced javascript. HostGator assuresme that it's not at their end. i created the two folders (Documents and Images) and uploaded the files to them. i wonder if there's somewhere that's trying to redirect the relative address somewhere else? here is the orginal src  for the logo image: src="https://images.builderservices.io/s/cdn/v1.0/i/m?url=https%3A%2F%2Fstorage.googleapis.com%2Fproducti..."

apparently this site doesn't allow html and js files. i'll try adding a txt extension

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 22, 2023 Feb 22, 2023

I'm not sure what that builderservices file you reference does but it doesn't have anything to do with your image missing from the server. Do you have the original site where it was before that you can upload via FTP? This is not an issue with Hostgator, but rather an issue of the Images folder missing from your server. It just needs to be uploaded to solve your issue.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 22, 2023 Feb 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.

 

image.pngexpand image

 

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

 

 

Nancy O'Shea— Product User, Community Expert & Moderator
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 22, 2023 Feb 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 & Moderator
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Feb 22, 2023 Feb 22, 2023
LATEST

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines