Hi everybody After suffering hours of debugging the problem that my upload form worked great when used in Firefox and not working (being blackholed) using SimpleTest web tests, I finally found the problem: SimpleTest doesn't seem to recognize the file upload field, and so the SecurityComponent::_validatePost() fails because when displaying the form there is one more field than after submit, where the file field is missing in the $data array.
I did some searching and found that SimpleTest should be able to simulate file uploads: "File upload testing - Can simulate the input type file tag" on http://www.simpletest.org/api/SimpleTest/tutorial_SimpleTest.pkg.html And here I found some API-information: http://simpletest.org/api_1.0.1/SimpleTest/WebTester/SimpleUploadTag.html But I didn't find any information on how to use this in practice. So for now I deactivated validatePost for the action using $this->Security->validatePost = false; in the UsersController. But it would be great if anybody could help me getting this to work using SimpleTest. Thanks a lot Josh Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en