%@ LANGUAGE="VBscript" %>
html>
head>
title>撼雪噴云之限傳文件/title>
/head>
body>
% Set upl = Server.CreateObject("SoftArtisans.FileUp") %>
% upl.MaxBytes = 1000
' 限制最大尺寸1000字節(jié).
%>
特別提醒:每一個上傳文件最大不超過.
%=upl.MaxBytes%>字節(jié).br>
% upl.SaveAs "C:\intels\temp\upload.out" %>
總計寫入字節(jié)數(shù): %=upl.TotalBytes%>br>
服務器文件名: %=upl.ServerName%>br>
你發(fā)送的總字節(jié)數(shù): %=Request.TotalBytes%>
/body>/html>
這樣,所有第1000個字節(jié)以后的內(nèi)容都會被丟棄,限制了文件大小,拉開了不同會員等級之間的差距。
[1]