Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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 CreditAttribution: ufku commented#1018344: Permitted file extensions field does not work properly