Thanks Sergio,
Any idea where to find a list of those settings and how to implement them? I
looked in to that before, but can't figure out how to use. I don't want to
change the destination path, only the filename (as the reference manual only
includes examples of changing destination paths...nothing about filename
only).
Here's my code.
//Logo Field
$logo = new Zend_Form_Element_File('logofile');
$logo->setLabel('Logo:');
$logo->setDestination('../public/images/Logos');
$logo->setValueDisabled(true);
$logo->addValidator('Count', false, 1);
$logo->addValidator('Extension', false, 'jpg,gif,png');
$logo->addValidator('Size', false, 204800);
$logo->setMaxFileSize(204800);
$logo->setValueDisabled(true);
//Add Filter
$logo->addFilter(new Zend_Filter_HtmlEntities());
$logo->addFilter(new Zend_Filter_StripTags());
$form->addElement($logo);
}
So how would I go about using Zend_File_Rename from here?
Thanks again.
--
View this message in context:
http://zend-framework-community.634137.n4.nabble.com/Renaming-file-before-upload-tp2292597p2292714.html
Sent from the Zend Framework mailing list archive at Nabble.com.