百度ueditor图片上传提示“上传失败,请重试”解决办法

百度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

猜你喜欢

转载自blog.csdn.net/loveyexian/article/details/75583225