Ticket #1966 (new New Feature)
Add viewable extensions to File Browser
| Reported by: | saidbakr | Owned by: | |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | File Browser | Version: | |
| Keywords: | Confirmed | 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
Change History
Note: See
TracTickets for help on using
tickets.