WebsiteBaker Logo
  • *
  • Templates
  • Help
  • Add-ons
  • Download
  • Home
*
Welcome, Guest. Please login or register.

Login with username, password and session length
 

News


WebsiteBaker 2.13.6 is now available!


Will it continue with WB? It goes on! | Geht es mit WB weiter? Es geht weiter!
https://forum.websitebaker.org/index.php/topic,32340.msg226702.html#msg226702


The forum email address board@websitebaker.org is working again
https://forum.websitebaker.org/index.php/topic,32358.0.html


R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WB
https://forum.websitebaker.org/index.php/topic,32355.0.html


* Support WebsiteBaker

Your donations will help to:

  • Pay for our dedicated server
  • Pay for domain registration
  • and much more!

You can donate by clicking on the button below.


  • Home
  • Help
  • Search
  • Login
  • Register

  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.12.x) »
  • Modules »
  • WYSIWYG browse media files
  • Print
Pages: [1]   Go Down

Author Topic: WYSIWYG browse media files  (Read 14729 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?
Logged
Webdesign by Dana

Offline hgs

  • WebsiteBaker Org e.V.
  • **
  • Posts: 1883
    • 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?
Logged
LG Harald

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

"Never begin to stop - never stop beginning." Marcus Tullius Cicero (106-43 BC)

Offline dbs

  • Betatester
  • **
  • Posts: 8914
  • 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?
Logged
https://onkel-franky.de

Offline hgs

  • WebsiteBaker Org e.V.
  • **
  • Posts: 1883
    • 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)
Logged
LG Harald

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

"Never begin to stop - never stop beginning." Marcus Tullius Cicero (106-43 BC)

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.  :-)
Logged
Webdesign by Dana

  • Print
Pages: [1]   Go Up
  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.12.x) »
  • Modules »
  • WYSIWYG browse media files
 

  • SMF 2.0.19 | SMF © 2017, Simple Machines
  • XHTML
  • RSS
  • WAP2