PDA

View Full Version : Upload goes to my local drive


arthure
12-28-2002, 07:44 AM
very beginner question, I'm afraid. - First Web site was built with 1stPage -

http://home.ix.netcom.com/~arthure/NCURA2002Web.html
(I used Photoshop to prepare six folders - and 1stPage to link them together)

I've set up links to folders and files in my website (pictures mostly) - uploaded it to the server - BUT
the links seem to refer to files on my hard drive - they load instantly and I don't see "net per sec" showing file transfers.

I think I used "local" "anchors?? or links?
for example:
<img src="file:///D|/PICTURES/EVENTS/NCURA2002/NCURA2002WEB/1/thumbnails/002NewJerseyTurnpikeToDC_6965.jpg" width="75" height="56" alt="" border="0">

How should I set the links so the web page works from the server? - please be specific with 1st page in Easy Mode if you can.

Thanks and happy holidays.

ByteWizard
12-28-2002, 11:28 AM
To expand a bit on what David said...

When you developed the web site on your local machine, you placed a link to the file (probably 1st Page did it) when you built the page. This link referred to a file on your hard drive. As long as your browser is running on your machine, regardless of whether you downloaded the "web site" from the internet server or not, the reference is still to an image on your hard drive. If your browser is looking for the file, it will find it on your hard drive. If someone else has downloaded the HTML code, their browser will not find this image file on your hard drive. You probably uploaded the image to the server, but did not change the link inside the <img src=> statement to point to the image on the server. If you placed the image in the same directory as the HTML code, something like

<img src=002NewJerseyTurnpikeToDC_6965.jpg>

should work.

Most people will place their images in a different directory from the code, something like a subdirectory called "Images" in which case you would refer to the image as

<img src=/Images/002NewJerseyTurnpikeToDC_6965.jpg>

arthure
12-28-2002, 12:15 PM
Thanks for the replys.
I have a number of directories and subdirectories for Images and thumbnails in Six different sections - the subdirectories are named easily - 1,2,3,4,5,6 with subs for images and thumbnails in each - and each picture has a link too - geez - will I need to do a search and replace for all??

Is there a better way to plan the website so the upload will work directly without replacing references to the locations of the files?
Like I said - it's my first uploaded site.

the main Index html is on the C: drive under the 1stPage subdirectory, all the other subdirectories on my computer were in the D: drive. - Should the index have been in the directory that "housed" all the subdirectories?

thanks