how to upload files - TechRepublic
General discussion
March 15, 2001 at 09:57 AM
raxbal

how to upload files

by raxbal . Updated 25 years, 3 months ago

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 %>



Name:

Up load File




This discussion is locked

All Comments