Opened 17 years ago
Last modified 17 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)
Change History (8)
Changed 17 years ago by
Attachment: | deniedextensions.JPG added |
---|
comment:2 Changed 17 years ago by
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 follow-up: 4 Changed 17 years ago by
Component: | General → File Browser |
---|---|
Keywords: | Confirmed added |
Summary: | Allowed and denied Extensions does not work properly in php → Add viewable extensions to File Browser |
Type: | Bug → New 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 Changed 17 years ago by
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
A screen shot of the resource browser called onclick of brows server button in Image properties window