Hi,
I have a form that allows a user to upload a file via a standard
<INPUT TYPE="FILE" NAME="Attachments">
for them to choose a file. (C:\sample.txt) Fine, uploads perfectly.
My problem is, that we want the user to be able to upload network files, eg COLOR=red)[/COLOR] so that when the form is submitted, just the network link is saved, this is done too. Do a substring for \ in the first 2 chars of the string.
My problem lies in a user selecting a file on a mapped drive eg(M:\sample.txt)
This is no good, as not everyone on the network will have the same mapped drives set up.
Can anyone enlighten me please? I need to be able to save the full network path.
eg convert
M:\sample.txt to \myPC\sample.txt