is your form set to handle multipart data?
cake 1.1
<form action="<?php echo $html->url('/controller_name/action_name');
?>" method="post" enctype='multipart/form-data'>
cake 1.2
<?php echo $form->create('ModelName', array('type'=>'file'));?>
Sam D
On 9/18/07, 2dee <[EMAIL PROTECTED]> wrote:
>
> Version 1.1.17.5612
>
> I baked the MCVs for my "Bios" model with bake. I am using a varchar
> 200 field to store the url to the image (image_url) so cake spits out
> an $html->input for the image_url field. I have a component handling
> file sanitization and upload before save. Basically, all I do is
> change the $html->input to $html->file and then pass the resulting
> array off to the component. This works perfectly fine for another
> model I have, but I cannot for the life of me get this to work on my
> bios model. The file field does not show up in the data array as it
> does in my other model, but it shows up again when switched back to a
> standard input field.
>
> I have played around for a while and I just can't figure it out as my
> controllers and views are quite similar across the 2 different
> models. Any ideas?
>
> <?php echo $html->file('Bio/image_url');?>
>
>
> >
>
--
(the old fart) the advice is free, the lack of crankiness will cost you
- its a fine line between a real question and an idiot
http://blog.samdevore.com/archives/2007/03/05/when-open-source-bugs-me/
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---