I found that the form field for specifying file name extensions for non-image types was too short (maxlength=128), since I was hoping to use IMCE as sort of light-weight embedded file browser, meaning I'd need to support lots of extensions.

To patch this, I changed the following definition in imce.module from this:

  $form['extensions'] = array('#type' => 'textfield',
    '#title' => t('Non-image file support'),
    '#default_value' => $set->extensions,
    '#description' => t('Although IMCE is mainly designed to browse images, it supports uploading and browsing of any file type. If you like to use this feature, define your <strong>allowed non-image file extensions</strong> here with a comma between them. Ex .doc, .pdf, .zip.  Note that, image upload limits also apply for these files. For a pure image browser leave this field blank.'),
  );

to this...

// increased maxlength of extensions field
  $form['extensions'] = array('#type' => 'textfield',
    '#title' => t('Non-image file support'),
    '#default_value' => $set->extensions,
    '#description' => t('Although IMCE is mainly designed to browse images, it supports uploading and browsing of any file type. If you like to use this feature, define your <strong>allowed non-image file extensions</strong> here with a comma between them. Ex .doc, .pdf, .zip.  Note that, image upload limits also apply for these files. For a pure image browser leave this field blank.'),
    '#maxlength' => 255,
  );

Comments

ufku’s picture

Status: Active » Closed (fixed)