25
11月
2024
官方下载的压缩包,解压后 测试,突然就出现了 图片文件无法上传的问题,如下图:
发现是测试了涂鸦功能后出现的问题,解决方法:
ueditor asp 目录下 找到 controller.asp 文件,增加 Session.Contents.Remove("base64Upload")就行了啊!
<%@ LANGUAGE="VBscript" CODEPAGE="65001" %> <% action = Request.Item("action") Session.Contents.Remove("ueditor_asp_uploadTemplateName") Session.Contents.Remove("ueditor_asp_base64Upload") Session.Contents.Remove("ueditor_asp_listTemplateName") '增加一行 Session.Contents.Remove("base64Upload") Select Case action Case "config" Server.Execute("action_config.asp") Case "uploadimage" Session.Value("ueditor_asp_uploadTemplateName") = "image" Server.Execute("action_upload.asp") Case "uploadscrawl" Session.Value("ueditor_asp_uploadTemplateName") = "scrawl" Session.Value("base64Upload") = "scrawl.png" Server.Execute("action_upload.asp") Case "uploadvideo" Session.Value("ueditor_asp_uploadTemplateName") = "video" Server.Execute("action_upload.asp") Case "uploadfile" Session.Value("ueditor_asp_uploadTemplateName") = "file" Server.Execute("action_upload.asp") Case "listimage" Session.Value("ueditor_asp_listTemplateName") = "image" Server.Execute("action_list.asp") Case "listfile" Session.Value("ueditor_asp_listTemplateName") = "file" Server.Execute("action_list.asp") Case "catchimage" Server.Execute("action_crawler.asp") End Select %>
非特殊说明,转载请注明出处.