如何上传一个单纯的HTML文件?
(福利推荐:你还在原价购买阿里云服务器?现在阿里云0.8折限时抢购活动来啦!4核8G企业云服务器仅2998元/3年,立即抢购>>>:9i0i.cn/aliyun)
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]
最新评论