[问题] asp 上传档案

楼主: gmotwm2001 (小马怪)   2017-09-30 10:33:43
想请问我上网找上传的方法可以上传到成功讯息,但是
我进资料夹看并没有存盘,想请问是什么问题?
谢谢
<% '如果发生错误,先跳过
On Error Resume Next
'宣告变量
Dim mySmartUpload
Dim intCount
'建立 aspSmartUpload 物件
Set mySmartUpload = Server.CreateObject
("aspSmartUpload.SmartUpload")
'执行上传
mySmartUpload.Upload
'将档案存放到指定位置,这里的指定位置可以使用相对路径或绝对路径
intCount = mySmartUpload.Save("/Upload")
'以下使用绝对路径的写法
'intCount = mySmartUpload.Save("c:\temp\")
'显示上传成功讯息
Response.Write(intCount & " file(s) uploaded.")
%>
作者: Renee606 (Renee)   2017-10-01 00:12:00
把第一行的on error resume next 先注解掉,遇到错误才不会跳过,才知道错误码是什么

Links booklink

Contact Us: admin [ a t ] ucptt.com