Testing image upload
Hi list,
what is the right way (if any) to test a controller which handles file
uploads? At the moment I fill $_FILES with an array containing the
fields expected by the controller (i.e. 'tmp_name', 'size', etc.) and
then invoke testAction() passing $_FILES as well, but the whole
mechanism fails when issuing move_uploaded_file() (is_uploaded_file()
with provided 'tmp_name' is actually returning false). What do you
suggest?
Regards,
Matteo
--
http://www.matteolandi.net/
--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home