WebsiteBaker Support (2.12.x) > Modules

WYSIWYG browse media files

(1/1)

dana:
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.



On the actual media page and in FTP, all files show up correctly.



No error logs or console errors.

What am I missing?

hgs:
Hello Dana
What does the view of Media look like
Are there also "only" PDF's displayed?

dbs:
How you done the upgrade?
Upload file by file or via zip?

hgs:
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

--- Code: ---/**
    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']          = [];
--- End code ---

You can change / add to this file according to your wishes

Translated with www.DeepL.com/Translator (free version)

dana:
Thank you so much, that worked!

I tried searching for a file where this was set but didn't want to mess things up.  :-)

Navigation

[0] Message Index

Go to full version