ASP上传文件到服务器并限制大小
我正在寻找一个免费的 ASP 脚本,它允许我将文件上传到我的服务器,但限制上传文件的大小和类型。它还应该通知用户错误,并且不要因为 IIS 大小限制而将他扔到 IIS 错误页面。
如果有一个附加功能可以在文件实际上传之前检查大小限制(意思是在浏览器上),我真的很感激,
有这样的东西吗?
谢谢 塔尔
I am looking for a free ASP script that will allow me to upload files to my server but limiting the size and type of the files uploaded. It should also inform the user of the errors and not throwing him to IIS error page because of IIS size limits.
I'd really appriciate if there will be an addition that will check the size limit before the file is actually uploaded (meaning - at the browser)
Is there anything like this?
Thanks
Tal
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
几年前,我发现了一个名叫 Lewis Moten 的人的代码:
http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=8525&lngWId=4
它包括检查文件大小,尽管它确实发生在服务器端,而不是客户端。
几年前,我在一个项目中使用了这段代码,效果非常好。
I found this code by a guy named Lewis Moten several years ago:
http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=8525&lngWId=4
It includes checking of file size, though it does happen server-side, not client-side.
I used this code for a project a few years ago and it worked great.