Closed (fixed)
Project:
IMCE
Version:
5.x-1.0
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
1 Sep 2007 at 01:19 UTC
Updated:
16 Mar 2011 at 04:54 UTC
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
Comment #1
ufku commented