I try to insert in the view the instruction that you post, but
apparently doesn't work. I can't see the imput for the attachment
Andrea
On 24 Mag, 18:21, "Samuel DeVore" <[EMAIL PROTECTED]> wrote:
> in 1.2 I make sure that I declare and open my forms like
>
> <?php echo $form->create('Attachment',array('type'=>'file'); ?>
>
> On 5/24/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
> > Hi to everybody,
> > I have a problem to create a page for uploading files.
> > My cake version is 1.2.0.4798alpha
> > I'm using this component:
> >http://cakeforge.org/snippet/detail.php?type=snippet&id=36
>
> > In the view file I use:
> > <div class="optional">
> > <?php echo $form->label('Image.image', 'Immagine');?>
> > <?php echo $form->file('userfile'); ?>
> > </div>
>
> > And in the Controller this:
> > if ($this->FileHandler->upload('userfile',
> > './img/')) {//per
> > localhost
>
> > But always I recive this error:
>
> > No file supplied.
>
> > In the previous stable version of Cake I use the same approach and it
> > works well. I don't understand what is the problem...
>
> > Can anyone helps me?
>
> > ps. Sorry for my little english
>
> --
> (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
-~----------~----~----~----~------~----~------~--~---