Author Topic: WYSIWYG browse media files  (Read 355 times)

Offline dana

  • Posts: 53
    • Webdesign by Dana
WYSIWYG browse media files
« 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.



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



No error logs or console errors.

What am I missing?

Offline hgs

  • Betatester
  • **
  • Posts: 1276
    • EFG MG
Re: WYSIWYG browse media files
« Reply #1 on: October 19, 2020, 02:52:05 PM »
Hello Dana
What does the view of Media look like
Are there also "only" PDF's displayed?
LG Harald

"Fange nie an, aufzuhören - höre nie auf, anzufangen." Marcus Tullius Cicero (106-43 v.Chr.)

Offline dbs

  • Betatester
  • **
  • Posts: 8399
  • Gender: Male
  • tioz4ever
    • WebsiteBaker - jQuery-Plugins - Module - Droplets - Tests
Re: WYSIWYG browse media files
« Reply #2 on: October 19, 2020, 04:22:46 PM »
How you done the upgrade?
Upload file by file or via zip?

Offline hgs

  • Betatester
  • **
  • Posts: 1276
    • EFG MG
Re: WYSIWYG browse media files
« Reply #3 on: October 20, 2020, 11:19:31 AM »
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: [Select]
/**
    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)
LG Harald

"Fange nie an, aufzuhören - höre nie auf, anzufangen." Marcus Tullius Cicero (106-43 v.Chr.)

Offline dana

  • Posts: 53
    • Webdesign by Dana
Re: WYSIWYG browse media files
« Reply #4 on: October 20, 2020, 05:35:17 PM »
Thank you so much, that worked!

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

 

postern-length