CKFinder 上传权限问题
下午,
过去几天我一直在使用 CKEditor 和 CKFinder,它们都在本地运行。一旦我将它放在各个方面,它就可以工作,除了尝试通过链接 -> 上传 .pdf 文件到服务器时。上传选项卡。
我收到的错误是“请求的资源类型无效”。我已将其上传到的文件夹设置为 777,并且我已确保文件的资源类型也允许 CKFinder 的 config.php 中的 .pdf 扩展名。
这个错误阻止了我完成我的项目,我真的没有办法尝试任何想法/解决方法都会很棒。
一种可能的解决方案是使用 KCFinder,我被告知可以使用,但不幸的是,我的老板说这不是一个选择。
Afternoon,
I have been working with CKEditor and CKFinder for the last few days and it all worked locally. Once I put it live in all aspects it worked except when attempting to upload a .pdf file to the server via the Link -> Upload tab.
The error that I receive is "The requested resource type is not valid". I have set the folders that it is uploading to, to 777 and I have made sure that the Resource type of Files also allows for the extensions of .pdf in config.php of CKFinder.
This error is stopping me from completion of my project and I really am out of things to try any ideas/ work arounds would be brilliant.
One possible solution was to use KCFinder which I was told would work but my boss said that was not an option unfortunately.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
问题似乎是 CKFinder 的过时版本,我摆弄了配置文件并确保 $baseUrl 和 $baseDir 遵循注释中的规则。在此之前,我认为我的 $baseUrl 开头没有“/”,但现在有。对于其他有问题的人来说,问题出在 CKFinder 中的 config.php 文件中。
The problem seems to have been an out dated version of CKFinder and I fiddled with the config file and made sure that the $baseUrl and $baseDir followed the rules in the comments. Prior to that I think my $baseUrl did not have the '/' at the beginning of it and now does. The problem lies in the config.php file in CKFinder for anyone else that has the problem.
如果消息是“资源类型无效”,那么这不是权限问题,而是您已重命名资源类型,因此无法正确初始化。
如果您已经拥有 CKFinder 的许可证,您应该在论坛或通过支持渠道发布此类问题。
If the message is "the resource type is not valid" then it's not a permissions issue, but instead that you have renamed the resource types and so it doesn't initialize properly.
If you already have a license to CKFinder you should post this kind of questions at the forums or through the support channel.