just use FormHelper, and files you have are stored in $this->data in
controller after submit
VIEW like this
{{{
print $form->create("YourModelName", array('type' => 'file')); //start form
for uploading
print $form->file('inputname'); //input for file
print $form->submit('upload'); //upload button
print $form->end(); //close it
}}}
in controller in method use like this
{{{
$file = $this->data["YourModelName"]["fieldname"];
//now $file stored classical array with index like tmp_name, name, size,
mime, error...and u can work like always :D
}}}
--
Lep pozdrav, Tilen Majerle
http://majerle.eu
2010/12/23 Leandro Montero <[email protected]>
> Hi there, in these days i had exactly the same problem as described
> here
>
>
> http://groups.google.com/group/cake-php/browse_thread/thread/6fdf4b6937b9912a/93cc444340a09940?#93cc444340a09940
> es
> The thing is that the solution overthere doesn't work in my
> website....
> Anyone has some clue? I'm completely desperate about this and my
> client
> really wants to kill me!
>
> Thank you!
> Leandro
>
> 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 [email protected]
> To unsubscribe from this group, send email to
> [email protected]<cake-php%[email protected]>For
> more options, visit this group at
> http://groups.google.com/group/cake-php?hl=en
>
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 [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