lmf232s
12-13-2004, 06:21 PM
hey i need to allow a user to browse to a file and select it.
So i am using multipart/form-data with a type=file to achieve this.
everyting works except, i can not figure out how to get the full
name of the file.
It is displayed in the textbox like this
G:\Ac200\200011SHT01.dwg
but when i read it out i can get these parts.
ac200 or
200011SHT01 or
dwg
but i can not get
the drive G:\
I would like to grab the whole name if possible.
How do i do this. I have this code.
For Each File In Form.Files.Items
If Len(File.FileName) > 0 Then
Response.Write File.Name & " " & File.FileName & " " & File.Length & File & "<BR>"
End If
Next
So i am using multipart/form-data with a type=file to achieve this.
everyting works except, i can not figure out how to get the full
name of the file.
It is displayed in the textbox like this
G:\Ac200\200011SHT01.dwg
but when i read it out i can get these parts.
ac200 or
200011SHT01 or
dwg
but i can not get
the drive G:\
I would like to grab the whole name if possible.
How do i do this. I have this code.
For Each File In Form.Files.Items
If Len(File.FileName) > 0 Then
Response.Write File.Name & " " & File.FileName & " " & File.Length & File & "<BR>"
End If
Next