View previous topic :: View next topic |
Author |
Message |
cjohnson -
Joined: 23 Jan 2008 Posts: 1
|
Posted: Wed Jan 23, 2008 3:10 am Post subject: Local Files |
|
|
Hey everyone, I'm new to the web server/html world and i'm trying to figure out how to link to local documents so remote users can log on and open them up (.doc, .ppt, .pdf, etc.) From reading another post:
http://www.aprelium.com/forum/viewtopic.php?t=14627&highlight=save+open
It would appear that having the save/open dialog box pop up when someone clicked on the link is going to be a bit beyond me so I was wondering if there was anyway to just have it automatically open the file on the other users computer? I've tried to link it like this:
a href="D:\abyss web server\htdocs\documentname.doc">document description</a></p>
When i use that link i get an error when i try to open it from a remote machine saying the file can not be found. When i right click and "Save Target As" from the remote computer i get a secuity alert saying "Your current security settings do not allow this file to be downloaded.
Any help would be most appreciated.
Thanks,
Chris |
|
Back to top |
|
 |
AbyssUnderground -
Joined: 31 Dec 2004 Posts: 3855
|
Posted: Wed Jan 23, 2008 10:06 am Post subject: |
|
|
D:\abyss web server\htdocs\documentname.doc is a local file and as such can not be linked on the other computer because it doesn't exist on the remote computer. You need to link it relatively so it pulls it from your server.
If its directly inside the htdocs folder then it would simply be
Code: | <a href="documentname.doc">document name</a> |
If it is inside a folder called "documents" which is directly inside the htdocs folder it would be
Code: | <a href="documents/documentname.doc">document name</a> |
_________________ Andy (AbyssUnderground) (previously The Inquisitor)
www.abyssunderground.co.uk |
|
Back to top |
|
 |
|