ckfinder在IE上不能使用flash上传问题的解决

项目在IE中使用ckfinder上传文件时,会出现“因为安全原因,文件不可浏览. 请联系系统管理员并检查CKFinder配置文件.”的提示,我也没认真去研究ckfinder, 因为使用ckfinder上传的话,要有相关的权限才能去进行上传操作,所以想到可能是flash没传输cookie到服务器吧,相关认证信息不传输的话后台也就没法去进行权限管理了,也就变为无权限去操作了。记得以前使用swfupload的时候是要加入认证字段的。

解决:直接去使用config.removePlugins = 'flashupload';配置去掉flash上传插件,使用普通上传或html5的上传功能。


<static> {String} CKFinder.config.removePlugins
Since: 2.0
List of plugins that must not be loaded. This is a tool setting which makes it easier to avoid loading plugins that are otherwise automatically loaded by CKFinder.

// Disable flash uploads.
config.removePlugins = 'flashupload';

// Remove the "Basket" folder in the folders pane.
config.removePlugins = 'basket';

// Remove the "Help" button.
config.removePlugins = 'help';

// Remove all the three plugins above.
config.removePlugins = 'help,basket,flashupload';


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
CKFinder是一个用于文件管理的Web应用程序,它可以方便地集成到Linux系统中。下面是安装CKFinder的步骤: 1. 首先,确保你的Linux系统已经安装了Apache或Nginx等Web服务器,并且PHP版本为5.6或更高。 2. 下载CKFinder的安装包。你可以从CKFinder的官方网站(https://ckeditor.com/ckfinder/)上下载最新版本的安装包。 3. 解压安装包。使用以下命令解压下载的安装包: ``` tar -zxvf ckfinder_3.x.x.tar.gz ``` 4. 将解压后的CKFinder文件夹复制到你的Web服务器的根目录下。例如,如果你使用的是Apache服务器,将CKFinder文件夹复制到`/var/www/html/`目录下。 5. 配置CKFinder。进入CKFinder文件夹,将`config.php.sample`文件重命名为`config.php`: ``` cd ckfinder mv config.php.sample config.php ``` 6. 打开`config.php`文件,并根据你的需求进行配置。你需要设置一些基本的参数,如文件上传路径、访问控制等。 7. 配置Web服务器。如果你使用的是Apache服务器,需要在Apache的配置文件中添加以下内容: ``` Alias /ckfinder "/var/www/html/ckfinder" <Directory "/var/www/html/ckfinder"> Options Indexes FollowSymLinks AllowOverride All Require all granted </Directory> ``` 8. 重启Web服务器,使配置生效。 9. 访问CKFinder。在浏览器中输入CKFinder的URL,例如`http://localhost/ckfinder/`,即可访问CKFinder的文件管理界面。 希望以上步骤对你有帮助!如果你还有其他问题,请继续提问。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值