Closed (duplicate)
Project:
IMCE
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
28 Jan 2011 at 17:49 UTC
Updated:
28 Jan 2011 at 18:07 UTC
In the "imce_upload_submit()" function of "imce.page.inc", the $validators management doesn't fit the Drupal 7 "file_save_upload()" file extensions management rules : in IMCE the joker for "all extensions allowed" is "*", but in "file_save_upload()" it is an empty array. Because of that, event if all extensions are allowed in IMCE, not all file extensions can be uploaded (".swf", for example).
The addition of
if( ! isset($validators['file_validate_extensions']) && $imce['extensions']=='*' )
$validators['file_validate_extensions'] = array();
after "$validators = array('imce_validate_all' => array(&$imce));", at line 283 of "imce.page.inc" solves the problem.
Comments
Comment #1
ufku commented#1018344: Permitted file extensions field does not work properly