roxy 文件管理器上传成功但 select 图像显示编辑警报 conf.js

roxy file manager Upload successfully but select image shows alert to edit conf.js

我已经用 ckEditor 配置了 Roxy 文件管理器。 我已经完成安装,并且可以正常工作 fine.File 上传也工作正常问题是文件 selection.when 我尝试从服务器 select 图片它显示警告消息。 这里给出了两个图像 我不知道 json file.so 中需要更改什么 请指导我如何配置 json 文件

Image-1

Image-2

这是我的 json 文件 conf.json

{
"FILES_ROOT":          "",
"RETURN_URL_PREFIX":   "",
"SESSION_PATH_KEY":    "",
"THUMBS_VIEW_WIDTH":   "140",
"THUMBS_VIEW_HEIGHT":  "120",
"PREVIEW_THUMB_WIDTH": "100",
"PREVIEW_THUMB_HEIGHT":"100",
"MAX_IMAGE_WIDTH":     "1000",
"MAX_IMAGE_HEIGHT":    "1000",
"INTEGRATION":         "custom",
"DIRLIST":             "php/dirtree.php",
"CREATEDIR":           "php/createdir.php",
"DELETEDIR":           "php/deletedir.php",
"MOVEDIR":             "php/movedir.php",
"COPYDIR":             "php/copydir.php",
"RENAMEDIR":           "php/renamedir.php",
"FILESLIST":           "php/fileslist.php",
"UPLOAD":              "php/upload.php",
"DOWNLOAD":            "php/download.php",
"DOWNLOADDIR":         "php/downloaddir.php",
"DELETEFILE":          "php/deletefile.php",
"MOVEFILE":            "php/movefile.php",
"COPYFILE":            "php/copyfile.php",
"RENAMEFILE":          "php/renamefile.php",
"GENERATETHUMB":       "php/thumb.php",
"DEFAULTVIEW":         "list",
"FORBIDDEN_UPLOADS":   "zip js jsp jsb mhtml mht xhtml xht php phtml php3 php4 php5 phps shtml jhtml pl sh py cgi exe application gadget hta cpl msc jar vb jse ws wsf wsc wsh ps1 ps2 psc1 psc2 msh msh1 msh2 inf reg scf msp scr dll msi vbs bat com pif cmd vxd cpl htpasswd htaccess",
"ALLOWED_UPLOADS":     "yes",
"FILEPERMISSIONS":     "0644",
"DIRPERMISSIONS":      "0755",
"LANG":                "auto",
"DATEFORMAT":          "dd/MM/yyyy HH:mm",
"OPEN_LAST_DIR":       "yes"
}

在conf.js

中写下编辑的名字即可

现在 INTEGRATION : "custom" 将其替换为 "INTEGRATION": "ckeditor",

检查集成 属性

INTEGRATION - Roxy Fileman is developed to work with CKEditor and TinyMCE. For integration with CKEditor set this to "ckeditor", for TinyMCE 3.x set "tinymce3", for TinyMCE 4.x set "tinymce4". For custom implementation set "custom", then fill "FileSelected()" function located in fileman/js/custom.js - for more details see "Roxy Fileman custom integration". The default value is "custom". This setting could be overriden by sending URL parameter "integration" when openning the file browser.

请检查要求文件扩展名的 ALLOWED_UPLOADS 声明。例如将 yes 替换为 jpg png bmp 或最好将其留空。

ALLOWED_UPLOADS - Space separated list of allowed file extensions. Set this if you want to allow only certain file type uploads. This list is also checked when file is renamed. Default is "".

ASPconfig.json的样本:

    {
"FILES_ROOT":          "~/writepermission_ok/media",
"RETURN_URL_PREFIX":   "",
"SESSION_PATH_KEY":    "",
"THUMBS_VIEW_WIDTH":   "140",
"THUMBS_VIEW_HEIGHT":  "120",
"PREVIEW_THUMB_WIDTH": "300",
"PREVIEW_THUMB_HEIGHT":"200",
"MAX_IMAGE_WIDTH":     "1000",
"MAX_IMAGE_HEIGHT":    "1000",
"INTEGRATION":         "tinymce4",
"DIRLIST":             "asp_net/main.ashx?a=DIRLIST",
"CREATEDIR":           "asp_net/main.ashx?a=CREATEDIR",
"DELETEDIR":           "asp_net/main.ashx?a=DELETEDIR",
"MOVEDIR":             "asp_net/main.ashx?a=MOVEDIR",
"COPYDIR":             "asp_net/main.ashx?a=COPYDIR",
"RENAMEDIR":           "asp_net/main.ashx?a=RENAMEDIR",
"FILESLIST":           "asp_net/main.ashx?a=FILESLIST",
"UPLOAD":              "asp_net/main.ashx?a=UPLOAD",
"DOWNLOAD":            "asp_net/main.ashx?a=DOWNLOAD",
"DOWNLOADDIR":         "asp_net/main.ashx?a=DOWNLOADDIR",
"DELETEFILE":          "asp_net/main.ashx?a=DELETEFILE",
"MOVEFILE":            "asp_net/main.ashx?a=MOVEFILE",
"COPYFILE":            "asp_net/main.ashx?a=COPYFILE",
"RENAMEFILE":          "asp_net/main.ashx?a=RENAMEFILE",
"GENERATETHUMB":       "asp_net/main.ashx?a=GENERATETHUMB",
"DEFAULTVIEW":         "list",
"FORBIDDEN_UPLOADS":   "js jsp jsb mhtml mht xhtml xht php phtml php3 php4 php5 phps shtml jhtml pl sh py cgi application gadget hta cpl msc jar vb jse ws wsf wsc wsh ps1 ps2 psc1 psc2 msh msh1 msh2 inf reg scf msp scr dll msi vbs bat com pif cmd vxd cpl htpasswd htaccess",
"ALLOWED_UPLOADS":     "",
"FILEPERMISSIONS":     "0644",
"DIRPERMISSIONS":      "0755",
"LANG":                "auto",
"DATEFORMAT":          "dd/MM/yyyy HH:mm",
"OPEN_LAST_DIR":       "yes"
}