化境无组件上传类做了很多年了,目前版本为 v2.1,授权方式是:免费使用,技术支持:250 元/半年 400 元/年。
官方网站:http://www.5xsoft.com/upload.html
化境无组件上传类功能强大,但使用上比 EZA.Upload 复杂。以下代码摘自“化境 ASP 无组件上传类 - upload_5xsoft 使用手册 2.1”:
set upload=new upload_5xsoft
set file=upload.file("file1")
if file.fileSize>0 then
file.saveAs Server.mappath("temp.jpg")
end if
set file=nothing
set upload=nothing
如果使用 EZA.Upload,代码为:
if EZA.Upload.QueryFileSize("file1") > 0 then
EZA.Upload.Save("file1", 0, Server.MapPath("temp.jpg"))
end if