百度ueditor图片上传提示“上传失败,请重试”解决办法
把ueditor的asp上传组件uploader.class.asp里的CheckOrCreatePath过程修改如下:
Private
Function
CheckOrCreatePath( ByVal path )
Set fs
=
Server.
CreateObject(
"
Scripting.FileSystemObject")
Dim parts,serverpath
serverpath
=
lcase(
Server.
MapPath(
"
/"))
path
=
replace(
lcase(path),serverpath,
"
")
parts
=
Split( path,
"
\" )
path
=
"
"
For
Each part in parts
path
= path
+ part
+
"
\"
If fs.
FolderExists( serverpath
& path )
=
False
Then
fs.
CreateFolder(serverpath
& path )
End If
Next
End Function