I think the nature of the question is simple, but i have had no luck googling or finding anything exactly what i'm after. I only hope the solution is as simple as i believe the question to be.
Here's the deal:
aspx page, c# code behind with an <asp:FileUpload /> control.
this page is used only in a local domain. Some administrative users are going to select a file from somewhere within the intranet (a picture file), which the fileUpload will grab the file path & name and upload to SQL Server record. (the text path, not the image). This is done so that when other users navigate to a report, page, etc. pertaining to a given individual, i can display the image by referencing the network path to the image.
simple enough and works great.
-here's the problem.
-for most users (i say most rather than 100%, because i never say 100% because you never know) have mapped network drives to these network shares.
A simplified example is:
\\myserver\mydir\ is mapped to drive "X:" on the client box.
when they use the fileupload control, it returns:
rather than the full UNC:
KEEP IN MIND, this is in terms of the client, the webserver doesn't even have these mapped network drives.