文件1 – upload.asp
<html>
<head>
<title> w3 upload </title>
</head>
<body>
用w3 upload组件上传
<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>
文件2 – 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>
