使用ASP编程在Web服务器上上载文件 [英] File upload on web server using ASP Programming
问题描述
亲爱的专家,
i希望使用ASP编程上传文件。
i已尝试下面的代码用于服务器上的文件保存,但它给了我一个错误,
<%
设置Upload = Server.CreateObject(Persits.Upload)
Upload.SetMaxSize 1048576' '截断1MB以上的文件
Upload.Save Server.MapPath(/ upload /)
%>
以上代码会抛出对象创建错误,如下所示。
-------------------- ---
服务器对象错误''ASP 0177:800401f3''
Server.CreateObject在第2行失败。
------------------------
请尽快给出解决方案尽可能。
问候,
sanjay gajera
+91 89050 74894
Dear expert,
i want to upload file using ASP programming .
i have tried below code for file save on the server but it gives me an error,
<%
Set Upload = Server.CreateObject("Persits.Upload")
Upload.SetMaxSize 1048576 '' Truncate files above 1MB
Upload.Save Server.MapPath("/upload/")
%>
above code throws an error of Object creation as below.
-----------------------
Server object error ''ASP 0177 : 800401f3''
Server.CreateObject Failed at line 2.
------------------------
please give the solution as soon as possible.
regards,
sanjay gajera
+91 89050 74894
推荐答案
Persits上载DLL在您的服务器上不可用,因为您无法创建该对象。下载并注册dll,然后尝试。
这里是一个提供详细信息的链接:
http://support.persits.com/show.asp?code=PS01032622 [ ^ ]
Persits Upload DLL is not available on your server because of which you cannot create the object. download and register the dll and then try.
here is a link which provides detailed information:
http://support.persits.com/show.asp?code=PS01032622[^]
这篇关于使用ASP编程在Web服务器上上载文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!