G
GrantMagic
Place a the following tag in your html
<input id="myFile" type="file" runat="server">
Then in your code.
First get the file name:
'Logic to find the FileName (excluding the path)
Dim intFileNameLength as Integer
Dim strFileNamePath as String
Dim strFileNameOnly as String
strFileNamePath = MyFile.PostedFile.FileName
intFileNameLength = Instr(1, StrReverse(strFileNamePath), "\")
strFileNameOnly = Mid(strFileNamePath,
(Len(strFileNamePath)-intFileNameLength)+2)
Then save the file:
myFile.PostedFile.SaveAs("C:\SomeDirectory\"& strFileNameOnly)
myFile.PostedFile.SaveAs(Server.MapPath("MINUTEFILES\") & strFileNameOnly)
<input id="myFile" type="file" runat="server">
Then in your code.
First get the file name:
'Logic to find the FileName (excluding the path)
Dim intFileNameLength as Integer
Dim strFileNamePath as String
Dim strFileNameOnly as String
strFileNamePath = MyFile.PostedFile.FileName
intFileNameLength = Instr(1, StrReverse(strFileNamePath), "\")
strFileNameOnly = Mid(strFileNamePath,
(Len(strFileNamePath)-intFileNameLength)+2)
Then save the file:
myFile.PostedFile.SaveAs("C:\SomeDirectory\"& strFileNameOnly)
myFile.PostedFile.SaveAs(Server.MapPath("MINUTEFILES\") & strFileNameOnly)