Avatar of cdakz
cdakz
Flag for United States of America asked on

How to provide a hyperlink to file without revealing path?

I need to provide an href / hyperlink in a web browser to a file, so that the user can open/download it, but NOT provide the full path to the file (for security reasons).

What's the best way to do this?
Web DevelopmentHTMLC#.NET Programming

Avatar of undefined
Last Comment
cdakz

8/22/2022 - Mon
SOLUTION
Jason C. Levine

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
cdakz

ASKER
I get the gist, but am familiar with asp.net/c#, so the php isn't clear.

Suggestion on how to do this in C# on ASP.NET? (Sorry I didn't say so in the beginning).
Jason C. Levine

Sorry, I don't work on Windows.  I will add those topics to your question so those Experts will see it.
David Johnson, CD

use a virtual directory. http::\\sitename\path can point anywhere on that server.
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy
ASKER CERTIFIED SOLUTION
cdakz

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Jason C. Levine

Thanks, cdakz.  Happy that I got you looking in the right direction.
cdakz

ASKER
Selected my solution because it was the ASP.NET MVC solution.