I don't now seem to be able to set filters to run on my uploaded files. I
used to run the filters after I had uploaded the files and validated the
form.
if ($form->isValid($this->_request->getPost())) {
$filter = new SiCo_Filter_File_StoreByDate(DOC_IMAGES .
config::get()->products->images->directory, true);
echo $values['image'] = $filter->filter($values['image']);
}
(The filter call takes a new directory name to which the date is appended in
the filter and whether to overwrite any existing files)
This used to work fine (1.6) now I've moved to 1.7 and it's giving me no end
of headaches. I've added the call to receive, but I don't now know where to
put the filters as they don't seem to do anything.
Am I calling them correctly, do they need to work a different way? Can they
be set inside the form?
All I want to do is move the uploaded file to a dated directory, which my
custom filter (extending the rename filter) did perfectly. Now it doesn't do
anything!
-----
Simon
http://www.ajb007.co.uk/
--
View this message in context:
http://www.nabble.com/Zend_Form_Element_File-tp20427318p20427618.html
Sent from the Zend Framework mailing list archive at Nabble.com.