Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Mapping a file into a link

Status
Not open for further replies.

mcallaghan

IS-IT--Management
Mar 22, 2005
43
US
Hello All,
What I am trying to do today is on my intranet site is provide the user the option to add path and file. The user will browse his or her public folders on there computer find the file. I will put that path and file into a txtbox.
This public folders is accesible from my webservers desktop.

On my save method I want to be able to somehow take that txtbox and make it into a link so that any user can just open up that file.

I have no problem with passing the path and the file. It just making that file into a link is my question.

I dont want to add that file to my database for space reasons.

Thanks in future for all your help.

 
The user will browse his or her public folders on there computer find the file. I will put that path and file into a txtbox. This public folders is accesible from my webservers desktop.

Just because you can log into the web server and open shared files on other machines, does not automatically mean that IIS security is configured to access those files. By default it cannot because IUSR_<MachineName> is local to the server and cannot be granted access to network resources.

The easy answer is to have the user upload a copy of the file to your web server. This wouldn't exactly be sharing the file so much as sharing a static copy of the file.


The hard way is to disable anonymous access to the web server and map every user's drive as a virtual folder in IIS. Depending on how many users this might not even be possible.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top