WebsiteBaker Community Forum
WebsiteBaker Support (2.12.x) => Modules => Topic started by: dana on October 19, 2020, 01:53:27 PM
-
Recently upgraded a client's website to 2.12.2 r379, WYSIWYG module v 3.0.12, CKEditor 4.11.1.2.
Using the 'browse server' button, no files are displayed unless they are PDF files.
(https://i.imgur.com/BoOzTeY.jpg)
On the actual media page and in FTP, all files show up correctly.
(https://i.imgur.com/BB3Gv01.jpg)
No error logs or console errors.
What am I missing?
-
Hello Dana
What does the view of Media look like
Are there also "only" PDF's displayed?
-
How you done the upgrade?
Upload file by file or via zip?
-
I think we found your problem.
There are several ways to insert a file into a WYSIWYG.
Once the screen to insert images.
And via the "baker's cap" to insert a link to a file.
What is displayed there in the "Browser" under "Browse Server" is controlled by the file under
modules/ckeditor/ckeditor/filemanager/connectors/php/
in the config.php
There you can decide for yourself what is displayed and what is forbidden in any case (hacker)
Extract from the file
/**
APPLY MORE RESTRICTIVE SETTINGS FOR WEBSITE BAKER
+ only allow file types: only textfiles (no PHP, Javascript or HTML files per default)
+ only allows images type: bmp, gif, jpges, jpg and png
+ only allows flash types: swf, flv (no fla ... flash action script per default)
+ only allows media types: swf, flv, jpg, gif, jpeg, png, avi, mgp, mpeg
*/
$Config['AllowedExtensions']['File'] = ['pdf','zip','csv','pptx','txt'];
$Config['DeniedExtensions']['File'] = ['html','htm','php','php','php2','php3','php4','php5','phtml','pwml','inc','asp','aspx','ascx','jsp','cfm','cfc','pl','bat','exe','com','dll','vbs','js','reg','cgi','htaccess','asis'];
$Config['FileTypesPath']['File'] = $Config['UserFilesPath'];
$Config['FileTypesAbsolutePath']['File'] = $Config['UserFilesAbsolutePath'] ;
$Config['QuickUploadPath']['File'] = $Config['UserFilesPath'] ;
$Config['QuickUploadAbsolutePath']['File'] = $Config['UserFilesAbsolutePath'] ;
$Config['AllowedExtensions']['Image'] = ['bmp','gif','jpeg','jpg','png','ico','pdf','zip'];
$Config['DeniedExtensions']['Image'] = [];
You can change / add to this file according to your wishes
Translated with www.DeepL.com/Translator (free version)
-
Thank you so much, that worked!
I tried searching for a file where this was set but didn't want to mess things up. :-)