keatonjohnson Posted March 18, 2009 Report Share Posted March 18, 2009 Hello, I'm trying to get pictures on my site. The pictures in my first page are currently stored on my machine, and in the HTML code it shows the path to these photos in my machine. How do I get these photos on the site? Do I have to upload them to my server? Thanks again, keatonjohnson Quote Link to comment Share on other sites More sharing options...
falkencreative Posted March 18, 2009 Report Share Posted March 18, 2009 Yes, you need to upload them to your server, and then update the SRC of the image to point to the image on the server, rather than the local image on your computer. Quote Link to comment Share on other sites More sharing options...
Wickham Posted March 18, 2009 Report Share Posted March 18, 2009 Yes, you need to upload them to your server, and then update the SRC of the image to point to the image on the server, rather than the local image on your computer. In other words, don't use a url for the images which begins C:\ A simple code like works if the image is in the same folder on your PC and is uploaded to the same directory as the html file on the server. You can use an absolute url like instead which should work locally on your PC and online but involves the server in more work. Quote Link to comment Share on other sites More sharing options...
keatonjohnson Posted March 18, 2009 Author Report Share Posted March 18, 2009 Yes, you need to upload them to your server, and then update the SRC of the image to point to the image on the server, rather than the local image on your computer. So if I make a folder in my documents called "gallery" and then make a "gallery folder on my server, I can just enter the image.jpg? Quote Link to comment Share on other sites More sharing options...
falkencreative Posted March 19, 2009 Report Share Posted March 19, 2009 For example, say you have your index.html file, and a folder filled with images named "gallery. -- index.html -- gallery (folder) -- images -- image to link to those images from the index file, you would use src="gallery/image.jpg" Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.