> <form action="upload" method="post" enctype="multipart/form-data">
>   <input type="file" name="data[Best][image]" value=""/>
>   <input type="submit" value="Upload"/>
> </form>

try:

<input type="file" name="image" value=""/>

then in your controller access it like so:

$img = $this->params['form']['image'];

the action/url for your form looks wrong btw, you would usually do:

<form action="<?php echo $html->url('/controller/method'); ?>"
method="post" enctype="multipart/form-data">

hth

jon

-- 


jon bennett
t: +44 (0) 1225 341 039 w: http://www.jben.net/
iChat (AIM): jbendotnet Skype: jon-bennett

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