问题描述
昨天,我找到了这个用于tinymce的文件和图像管理的漂亮插件,但是我无法将文件实际保存到驱动器中.我已经尝试过所有我能想到的组合.
Yesterday I found this great looking plugin for file and image management for tinymce however I cannot get the files to actually save to the drive. I have tried every commbination I can think of.
sensitivefilemanager.com-此插件.
responsivefilemanager.com - This plugin.
有人使用过它吗,知道我可能需要的设置吗?
Anyone used it before and know of the settings I might need?
该插件位于此处:/public_html/cms/app/webroot/js/tinymce/plugins/filemanager
我正在尝试对其进行设置,以便上传到此处:/public_html/cms/app/webroot/files/cms
I'm trying to set it up so the uploads go here: /public_html/cms/app/webroot/files/cms
该插件的配置文件为此配置了3行,如下所示,如下所示:
The config file for the plugin has 3 lines to configure for this, these are as follows and as I have set them up:
$base_url="http://domain.com/cms/"; // base url of site. If you prefer relative urls leave empty
$upload_dir = 'app/webroot/files/cms/'; // path from base_url to base of upload folder
$current_path = '../../../files/cms/'; // relative path from filemanager folder to upload folder
现在,当我开始解决这个问题时,我会收到一个错误消息,说根文件夹不存在,所以我一直在使用路径,现在我没有收到此错误,但仍然无法上传图片,一切看起来都正常,在上传图片时获得预览,完成后显示绿色勾号,然后返回文件列表,图片不存在.它也不在服务器上.我想知道是否有一种方法可以对此进行调试并弄清楚发生了什么事情?
Now when I started working this out I would get an error for the plugin saying the root folder doesn't exist so I keep playing with the paths and now I don't get this error but I still cannnot get it to upload the images, everything looks like it works, I get the preview as the image is uploading and a green tick once it's complete then I go back to the files list and the image isn't there. It's not on the server either. I'm wondering if there is a way to debug this and work out what's happening?
谢谢
推荐答案
我最终将其与以下设置一起使用:
I ended up getting this to work with the following settings:
$base_url="http://domain.com"; // base url of site.
$upload_dir = '/cms/app/webroot/files/cms/'; // path from base_url to base of upload folder
$current_path = '../../../../files/cms/'; // relative path from filemanager folder to upload folder
谢谢
这篇关于调试响应文件管理器插件(TinyMCE)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!