Hi,

i have this piece of code

$form_item = new Zend_Form_Element_File($item['form_name']);
$form_item->setLabel($item['form_label']);
$form_item->setRequired(true);
$form_item->addValidator('Count', false, 1);
$form_item->addValidator('Size', false, 1024000);
$form_item->addValidator('Extension', false, 'jpg,png,gif');
$form_elements[] = $form_item;

the form is ok

but when i am uploading a file like "bg_twitter.jpg"

in tmp folder it supposed to have a file like 'phpcp4164' but in tmp folder
i find this file "bg_twitter.jpg"

anyone  have any idea why is doing so?


I am using Zend 1.9.5


victor

http://apostolvictor.info

Reply via email to