CKFinder 原本是在 CKEditor 下的一個程式
後來被獨立出來
如果要使用的話
只要把 CKEditor 安專完後
將 CKFinder 丟進 ckfinder 即可
---------------------------------------------------------------------------------------------------------------------
出現訊息
"The file browser is disabled for security reasons. Please contact your system administrator and check the CKFinder configuration file."
CKFinder 預設是關閉上傳的
如欲開啟
到 ckfinder 資料夾下開啟 config.php
將函式 CheckAuthentication() 下的
return false;
註解掉
新增
return ture;
即可
但要注意這樣做等於是開了一個安全上的漏洞
使用權限要管制注意
原文說明如下
//WARNING : DO NOT simply return "true". By doing so, you are allowing
//"anyone" to upload and list the files in your server. You must implement
//some kind of session validation here. Even something very simple as…
// return isset($_SESSION['IsAuthorized']) && $_SESSION['IsAuthorized'];
//… where $_SESSION['IsAuthorized'] is set to "true" as soon as the
//user logs in your system.
---------------------------------------------------------------------------------------------------------------------
"It was not possible to complete the request due to file system permission restrictions."
我會出現這個訊息是因為上傳的檔案有中文檔名和指定的 $baseUrl 路徑錯誤
$baseUrl 路徑是從網站伺服器的根目錄開始向下延伸的
例如說
伺服器的網站指定根目錄是 E:\webservice
而 Joomla 的根目錄是 E:\webservice\joomla
那 $baseUrl 指定路徑就要從資料夾 joomla 開始寫起
ex. /joomla/updata/
※ $baseUrl 的功能是設定 CKFinder 指定目錄 (上傳存放目錄)