bump! On Sat, Dec 3, 2011 at 8:01 PM, Matteo Landi <[email protected]> wrote: > 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/
-- 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 [email protected] For more options, visit this group at http://groups.google.com/group/cake-php
