Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1079
  • Last Modified:

Image shows up as red cross?


On Uploading a page to the Internet an image I have used comes up as a red cross?

Why is this?

2 Solutions
That's if the image isn't found due to path-problems.

have you uploaded the image-file as well?

Please post the <img> tag of the image showing as red cross.

   It could be one of three things.

1. You used a direct link to the img file in your web page so it is trying to find the image locally on a machine rather than relative to your web page for exameple,

C:\My Documents\myimage.gif was used instead of

(based on the image file being in the same folder as the web page).

2. You did not upload the image file along with the web page.

3. The image is too large a file size and/or your web connection is too slow and it is timing out downloading the file.

Hope this helps,
Post your code or a link and we can tell better what is going on.

Peter Witham.
KelechiAuthor Commented:
I will post the image link but onlu when I get home so hopefully tommorow you will see it OK.

So I have to download the Image file onto the server then?

Thank You
Yes you have to put everything that is referenced in any web pages on the server, otherwise it cannot be viewed.

Peter Witham
These are additional problem that may occure:

1, the file name (in IMG tag) is set to your local machine path (ex. C:\images\test.jpg)

2, file is not uploaded on server

3, file is too large to download via your connection

4, filename if wrong. Means that if you are uploading images to server which is case-sensitive, you shold set IMG SRC tag to exact filename you want to put on site. If you have just upper case in your extension (test.JPG) and on site is written IMG SRC="test.jpg", then server will not find your image due to upper case of extension

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now