fileup.htm
< html >
< head >
< title >千花飛舞之上傳單個文件< /title >
< /head >
<body>
< form enctype="multipart/form-data" method="post" action="fileup.asp" >
輸入想要上傳的文件: < input type="file" name="f1" >
< input type="submit" value="開始上傳" > < /form >
< /body >
< /html >
fileup.asp
< %@ LANGUAGE="VBscript" % >
< html >
< body >恭喜,文件上傳成功!
< % Set upl = Server.CreateObject("SoftArtisans.FileUp") % >
< % upl.SaveAs "C: empupload.out" % >
上傳文件字節數: < %=upl.TotalBytes% >
< /body >
< /html >
[1]