2013-06-21 47 views
2

我按照手冊中的說明進行了所有設置。 我創建了一個文件夾和拇指,我給了它寫入權限,但看不到上傳源文件夾的圖片。 我看着顯示的圖片文件「dialog.php」,並注意到 $files = scandir ($root . $cur_dir);回報「FALSE」即使該文件夾的路徑是否正確指定並有圖片 我將不勝感激任何建議FileManager4TinyMCE看不到上傳的圖像

在查看更多: http://test.albertoperipolli.com/filemanager4tinymce/#sthash.ySH5z8IZ.dpuf

回答

2

我有同樣的問題,但它是你的($current_path

我也截斷完整/filemanager/thumbs文件夾之前更改配置,012的問題也許也很重要不知道是否真的需要。

我的TinyMCE的文件夾,文件管理器:/admin/tinymce/js/tinymce/plugins/filemanager (所以6子文件夾到我的根,見下文=> 「../」)

我的文件夾配置(錯誤):

// path from base_url to upload base dir 
$upload_dir = '/_upload_bilder/_filemanager/'; 

// relative path from filemanager folder 
$current_path = '../../../../../../_filemanager/'; 

上傳文件文件夾

然後正確:

// path from base_url to upload base dir 
$upload_dir = '/_upload_bilder/_filemanager/'; 

// relative path from filemanager folder to upload files folder 
$current_path = '../../../../../../_upload_bilder/_filemanager/'; 

我豪PE可以幫助您:)

問候 湯姆

1

我有一個類似的問題。我遇到的問題是

有錯誤!到文件管理器插件是根文件夾不存在

我的文件絕對路徑:

http://localhost/site/assets/tinymce/plugins/filemanager/thumb 

我的上傳目錄 /資產/上傳 所以我把這些步驟來調試。

  • 我改變了行號4,從

    $root = rtrim($_SERVER['DOCUMENT_ROOT'],'/'); // don't touch this configuration 
    

$root = rtrim($_SERVER['DOCUMENT_ROOT'].'site/','/'); // don't touch this configuration 
  • 它的工作,但我的圖片,其中沒有顯示,所以我再更新我的BASE_URL,的current_path ,upload_dir至

    $base_url="http://localhost/site"; 
    $upload_dir = '/assets/uploads/'; 
    $current_path = '../../../uploads/'; 
    
0

行號4不應該改變,只要保持相同,則:

$base_url = "http://localhost/site"; 
$upload_dir = '/assets/uploads/'; //will be start from base url eg: http://localhost/site/assets/uploads/ 
$current_path = '../../../uploads/'; //will leave from filemanager folder to the same upload_dir