1. Ueditor百度編輯器 asp版本的 圖片無法上傳,提示網路連接錯誤!求幫助!
我也是和你一樣的問題,最後發現裡面的一個fso函數有問題,不能執行相關判斷,然後一樣報錯,解決方案:把ueditor/asp/uploader.class.asp裡面的CheckOrCreatePath函數注釋掉,然後加入
Public Function CreateDir(ByVal crDirname)
Dim M_fso
CreateDir=False
Set M_fso = CreateObject("Scripting.FileSystemObject")
If (M_fso.FolderExists(crDirname)) Then
CreateDir=False
Else
M_fso.CreateFolder(crDirname)
CreateDir=True
End If
Set M_fso = Nothing
End Function
Function CheckOrCreatePath(byval LocalPath) '建立目錄的程序,如果有多級目錄,則一級一級的創建
on error resume next
LocalPath = replace(LocalPath,"\","/")
set FileObject = server.createobject("Scripting.FileSystemObject")
patharr = split(LocalPath,"/")
path_level = ubound(patharr)
for i = 0 to path_level
if i=0 then pathtmp=patharr(0) & "/" else pathtmp = pathtmp & patharr(i) & "/"
cpath = left(pathtmp,len(pathtmp)-1)
if not FileObject.FolderExists(cpath) then FileObject.CreateFolder cpath
next
set FileObject = nothing
if err.number<>0 then
CreateDIR = false
err.Clear
else
CreateDIR = true
end if
End Function
然後刷新重試