I have an input file html element in my form.
<?php echo $form->file('Flyer.file',
array('label'=>__('flyer.file.label', true))); ?>

Then I need to proccess it

function upload() {

(...Code...)
        elseif(!empty($this->data)){
                        if ($this->data['Flyer']['file']) {
                                list($width, $height) = 
getimagesize($this->data['Flyer']
['file']);
                                print_r($this->data['Flyer']
['file']); //This is for debugging purposes.

(...Code...)
}

However, it (print_r) prints just the filename (i.e  flyer_test.jpg).
I was expecting that:
$this->data['Flyer']['file'] =  array ('name' => 'FooName.jpg', 'type'
=> 'MimeType', 'tmp_name' = '/tmp/Foo', 'error' => Value, 'size' =>
Value)

Why it just throws $this->data['Flyer']['file'] = "flyer_test.jpg"

Any help is appreciated. Thanks.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to