Opened 16 years ago

Last modified 16 years ago

#1966 confirmed New Feature

Add viewable extensions to File Browser

Reported by: Said Bakr Owned by:
Priority: Normal Milestone:
Component: File Browser Version:
Keywords: Cc:

Description

In \connectors\php\config.php when trying to add denied extenstions to any of File, Image, Flash or media it seems to do nothing and the file browser show all files in the directory.

$Config['AllowedExtensions']['Image']	= array('bmp','gif','jpeg','jpg','png') ;
$Config['DeniedExtensions']['Image']	= array('php','txt') ;

Look at the attached image

For this example the file browser still show php files in image directory in addition of any other file founded in the image directory.

The server is Apache and working on Windows XP SP2, in other word I use XAMPP 161.

I think this bug due to the way of dealing with the FileTypesAbsolutePath? and windows.

$Config['FileTypesAbsolutePath']['Image']= ($Config['UserFilesAbsolutePath'] == '') ? '' : $Config['UserFilesAbsolutePath'].'image/';

In windows the absolute path does not represented as, for example, C:/server/site/ , but it should represented as C:\server\site\

Attachments (3)

deniedextensions.JPG (47.5 KB) - added by Said Bakr 16 years ago.
A screen shot of the resource browser called onclick of brows server button in Image properties window
config.php (8.2 KB) - added by Said Bakr 16 years ago.
The PHP connector configuration
fckconfig.js (14.4 KB) - added by Said Bakr 16 years ago.
The editor javascript config

Download all attachments as: .zip

Change History (8)

Changed 16 years ago by Said Bakr

Attachment: deniedextensions.JPG added

A screen shot of the resource browser called onclick of brows server button in Image properties window

comment:1 Changed 16 years ago by Said Bakr

The version of FCKeditor is 2.5.1 Build 17566

Changed 16 years ago by Said Bakr

Attachment: config.php added

The PHP connector configuration

Changed 16 years ago by Said Bakr

Attachment: fckconfig.js added

The editor javascript config

comment:2 Changed 16 years ago by Wiktor Walc

Currently file browser displays all files, regardless of the allowed/denied list. The allowed/denied extensions list is used during file uploads. If you need such functionality (and much more), you can try CKFinder.

comment:3 Changed 16 years ago by Wojciech Olchawa

Component: GeneralFile Browser
Keywords: Confirmed added
Summary: Allowed and denied Extensions does not work properly in phpAdd viewable extensions to File Browser
Type: BugNew Feature

It could be a new feature in the File Browser. Something like:

$Config['ViewableExtensions']['Image']	= array('png','bmp') ;

then the possibility of inserting an invalid file type (which is already on the server) would be impossible

comment:4 in reply to:  3 Changed 16 years ago by Said Bakr

Yes it will be very good. Go on I wait it to be implemented. Thank You! Replying to w.olchawa:

It could be a new feature in the File Browser. Something like:

$Config['ViewableExtensions']['Image']	= array('png','bmp') ;

then the possibility of inserting an invalid file type (which is already on the server) would be impossible

comment:5 Changed 16 years ago by Wojciech Olchawa

#1978 has been marked as DUP

Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy