upload.asp的代碼:
<html>
<head>
<title> w3 Upload </title>
</head>
<body>
<form action="UploadProcess.asp" method="post" enctype="multipart/form-data">
<input type="file" name="thefile"><br>
Choose a name: <input type="text" name="name"><br>
<input type="submit" value="Transmit">
</form>
</body>
</html>
UploadProcess.asp的代碼 :
<%@ Language=vbscript %>
<%
Set upload = Server.CreateObject( "w3.upload" )
actualName = upload.Form( "name" )
Set fileName = upload.Form( "thefile" )
if fileName.IsFile then
fileName.SaveToFile( Request.ServerVariables( "APPL_PHYSICAL_PATH" ) & "\\" & actualName )
end if
%>
<html>
<head>
<title> w3 Upload </title>
</head>
<body>
<br>
<br>
<center>
Finished!
</center>
<br>
<br>
<br>
</body>
</html>
請問我要怎麼樣改變上傳路徑呢,
例如保存在"D:\file"上