Discussion Locked

how to upload files

0 helpful
0 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

this is my code it is not working on web but it works on my pws so what i should do ? please help!
<%
If Request.ServerVariables("REQUEST_METHOD") = "POST" Then
dim conn, recset , sDsn, sSql , objCon , command , objFileSystem , foltemp
strFname = request("txtname")
strLname = request("txtfile")

Set objFileSystem = Server.CreateObject("Scripting.FileSystemObject")

if objFileSystem.FolderExists(Server.MapPath("Temp")) then

objFileSystem.CopyFile strLname,"Temp/"

else
Response.Redirect "default.asp"
end if

'Response.Redirect "thanks.asp"

end if

%>

0 replies

No replies were posted before this discussion closed.

This discussion is closed to new replies.