问题描述
亲爱的专家,
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
推荐答案
这篇关于使用ASP编程在Web服务器上上载文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!