asp 怎么上传大文件,谁有代码?

发布时间:2007年02月14日      浏览次数:1129 次
用组件阿,我就为我们公司作了一个,上传一个600M的只用3分钟.
1.先下载w3.upload控件在服务器上安装。
http://www.5uclub.com/down/list.asp?id=890
2。演示使用:
<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="VBs cript" %>
<%
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>
免责声明:本站相关技术文章信息部分来自网络,目的主要是传播更多信息,如果您认为本站的某些信息侵犯了您的版权,请与我们联系,我们会即时妥善的处理,谢谢合作!