Closed (fixed)
Project:
Upload element
Version:
6.x-1.2
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
21 Apr 2009 at 15:40 UTC
Updated:
22 Apr 2009 at 05:19 UTC
Here's the code I use :
$form['image'] = array(
'#type' => 'image_upload_element',
'#attributes' => array("enctype" => "multipart/form-data"),
'#title' => t('Image'),
'#image_preview_size' => '120x250',
'#file_validators' => array(
'file_validate_size' => array(10240),
'file_validate_extensions' => array('png gif jpg jpeg'),
),
);
As you can see on screen-shots attached, the upload is forbidden on IE6 but not on FF3.
Comments
Comment #1
alan d. commentedWere you logged in as admin user? (uid = 1)
The module is using core Drupal file size validation that allows the admin user to bypass the size restrictions:
Eg:
Comment #2
Simbud commentedOups ! True ! Didn't thought admin could bypass the limitation.
Thanks for your quick answer and for your useful module :)
Comment #3
alan d. commented;)