Hello, I have the following code in my view for each Room (these are only two fields for example, but I have more.):
<?=$html->selectTag($i.'][Room/tv')?> <?=$html->file($i.'][Room/image1')?> <?=$html->file($i.'][Room/image2')?> where $i - is simple counter I need such mess to have following appearance in the HTML source: <select name="data[0][Room][tv]" .... > <input type="file" name="data[0][Room][image1]" ... /> <input type="file" name="data[0][Room][image2]" ... /> I need this to be able to save several Rooms at once. I let user press javascript 'Add' button to show another set of fields to enter another Room and then submit all rooms by pressing 'Submit'.(this is my last topic about it : http://groups.google.com/group/cake-php/browse_thread/thread/dd3611eb91836bee/ ) Problem is: All fields works great, except of file fields. In my controller: $rooms = $this->data; foreach($rooms as $room) { print_r($room) } Here is what I have (it's killing me): Array ( [Room] => Array ( [tv] => 0 [name] => Array ( [image1] => med_gallery_1_29_222626.jpg [image2] => med_gallery_349_29_48910.jpg ) [type] => Array ( [image1] => image/jpeg [image2] => image/jpeg ) [tmp_name] => Array ( [image1] => D:\www\php\tmp\php1AB.tmp [image2] => D:\www\php\tmp\php1AC.tmp ) [error] => Array ( [image1] => 0 [image2] => 0 ) [size] => Array ( [image1] => 56196 [image2] => 20905 ) ) ) But I expected usual Files array for image1 and image 2 - something like this: Array ( [Room] => Array ( [tv] => 0 [image1] => Array ( [name] => med_gallery_1_29_222626.jpg [type] => image/jpeg [tmp_name] => D:\www\php\tmp\php1AB.tmp ...... ) [image2] => Array ( [name] => med_gallery_349_29_48910.jpg [type] => image/jpeg [tmp_name] => D:\www\php\tmp\php1AC.tmp ...... ) ) ) Help please. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~----------~----~----~----~------~----~------~--~---