Local Files

 
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions
View previous topic :: View next topic  
Author Message
cjohnson
-


Joined: 23 Jan 2008
Posts: 1

PostPosted: Wed Jan 23, 2008 3:10 am    Post subject: Local Files Reply with quote

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 View user's profile Send private message
AbyssUnderground
-


Joined: 31 Dec 2004
Posts: 3855

PostPosted: Wed Jan 23, 2008 10:06 am    Post subject: Reply with quote

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 View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group