*Did you use the enctype for post media data?*

On Thursday, July 12, 2012 1:00:24 PM UTC+5:30, technobulka wrote:
>
> create input file:
>>
>> $this->Form->file('color.'.$prod_color['id'].'.images.'.$i)
>>
>  
>  in html i see:
>
>> data[color][1][images][0]
>
> ...
>
> data[color][1][images][9]
>
>
> but debug($this->data['color']) looks like:
>
>> Array
>> (
>>     [1] => Array
>>         (
>>             [images] => Array
>>                 (
>>                     [name] => Array
>>                         (
>>                             [0] => 
>>
>>                             ...
>>
>> [9] => ) [type] => Array ( [0] =>
>>
>>                             ...
>>
>> [9] => ) [tmp_name] => Array ( [0] => 
>>
>>                             ...
>>
>> [9] => ) [error] => Array ( [0] => 4 
>>
>>                             ...
>>
>> [9] => 4 ) [size] => Array ( [0] => 0 
>>
>>                             ...
>>
>> [9] => 0 ) ) ) [2] => Array ( ...
>>
>>
> what i do wrong? why it don't create normal array? 
>

-- 
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

Reply via email to