Jatin Khurana
Jatin Khurana

Reputation: 1175

Image Path is not picking when uploaded the files on ftp server

I am using the following code to show the image on the web-page.

<div float="right" width="30%">
<center><img src="jatinkhurana_image.jpg"/></center>
</div>

The above code is from an .html file. My image is also in the same directory in which the html file.

It's working fine when i am running the same when all the html file and image file is in my local directory.

Now I have uploaded all the files in ftp server.Everything else is working fine except it's not showing the image on webPage.

Things that I have tried... I have logged on to that server and checked file is there or not.... file was there. I have checked for the file name which is also right.

I don't know why this is not showing the image.

If anyone know, please help me !!!

Upvotes: 1

Views: 983

Answers (1)

Faiz Ahmed
Faiz Ahmed

Reputation: 1103

Check your browser console an inspect that image element. When you find that image copy it's src attribute and paste it in new tab and check if you see the picture or not. If you do not see the picture you must have some broken link to the image, if you see the image in new tab disable all the extensions of your browser like ad-blocks etc and let me know.
EDIT:
Also check if that, that place is blank or the broken image shows up. ( Like chrome loads a tiny broken image if the url is wrong )

Upvotes: 1

Related Questions