ckfinder上传文件时出错

本文详细介绍了CKFinder浏览服务器正常,但在上传文件时出现“已取消到该网页的导航”错误的原因及解决方案。通过修改CKeditor配置文件中的路径设置,可以有效解决上传地址错误的问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

ckfinder浏览服务器正常,上传文件时出现“已取消到该网页的导航 你可以尝试以下操作:刷新网页。”是由于上传文件的地址错误。解决方案是 在CKeditor/config.js文件增加如下配置:


config.filebrowserBrowseUrl = location.hash + '/ckfinder/ckfinder.html';

config.filebrowserImageBrowseUrl = location.hash + '/ckfinder/ckfinder.html?Type=Images';

config.filebrowserFlashBrowseUrl = location.hash + '/ckfinder/ckfinder.html?Type=Flash';

config.filebrowserUploadUrl = location.hash + '/ckfinder/core/connector/aspx/connector.aspx?command=QuickUpload&type=Files';

config.filebrowserImageUploadUrl = location.hash + '/ckfinder/core/connector/aspx/connector.aspx?command=QuickUpload&type=Images';

config.filebrowserFlashUploadUrl = location.hash + '/ckfinder/core/connector/aspx/connector.aspx?command=QuickUpload&type=Flash';

 

注意加上“location.hash ”。

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值