问题:在ckeditor/ckfinder中上传图片选择“浏览服务器”,提示“无效请求”。但之前在apache环境下没有这个问题,一切正常,在iis下出现这个问题。可以看到浏览器地址为:http://localhost/js/ckfinder/ckfinder.html?Type=Images&CKEditor=editor01&CKEditorFuncNum=0&langCode=zh-cn1.ckfinder和ckeditor目录如下:C:\inetpub\wwwroot\js\ckeditor,C:\inetpub\wwwroot\js\ckfinder。
2.js代码如下:
var oCKeditor = CKEDITOR.replace('editor01'); 
CKFinder.setupCKEditor(oCKeditor, '/js/ckfinder/' );
其中路径改为 '../ckfinder/'也不行。
alert显示setupCKEditor执行完毕,无返回值。之前写成SetupCKEditor不执行,但apache没事。
3.ckeditor的config.js配置如下:
config.filebrowserImageBrowseUrl = '/js/ckfinder/ckfinder.html?Type=Images';  
config.filebrowserImageUploadUrl = '/js/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Images'; 
4.ckfinder的config.php配置如下:
'baseUrl'      => '/js/ckfinder/upimages/',
5.跟踪日志显示config.php 执行完毕。
6.php日志错误记录:
 PHP Fatal error:  Uncaught exception 'CKSource\CKFinder\Exception\InvalidConfigException' with message 'The temporary folder is not writable for CKFinder' in C:\inetpub\wwwroot\js\ckfinder\core\connector\php\vendor\cksource\ckfinder\src\CKSource\CKFinder\Config.php:330
Stack trace:
#0 C:\inetpub\wwwroot\js\ckfinder\core\connector\php\vendor\cksource\ckfinder\src\CKSource\CKFinder\Config.php(73): CKSource\CKFinder\Config->validate()
#1 C:\inetpub\wwwroot\js\ckfinder\core\connector\php\vendor\cksource\ckfinder\src\CKSource\CKFinder\CKFinder.php(91): CKSource\CKFinder\Config->__construct('C:\inetpub\wwwr...')
#2 C:\inetpub\wwwroot\js\ckfinder\core\connector\php\vendor\pimple\pimple\src\Pimple\Container.php(113): CKSource\CKFinder\{closure}(Object(CKSource\CKFinder\CKFinder))
#3 C:\inetpub\wwwroot\js\ckfinder\core\connector\php\vendor\cksource\ckfinder\src\CKSource\CKFinder\CKFinder.php(185): Pimple\Container->offsetGet('config')
#4 C:\inetpub\wwwroot\js\ckfinder\core\connector\php\connector.php(18): CKSource\CKFinder\CKFinder->__ in C:\inetpub\wwwroot\js\ckfinder\core\connector\php\vendor\cksource\ckfinder\src\CKSource\CKFinder\Config.php on line 330求高手指点!