Hi,

Good guess; actually, the reason for it was pointed
out to me.  The problem was in the form declaration,
which should have been:

<?php echo $form->create('Featurerequest',
array('type'=>'file'));?>

The "array" part was missing.  Things are working now,
so I hope passing this on helps someone not to make
the same mistake I did.

Thanks again,

A.K.

--- francky06l <[EMAIL PROTECTED]> wrote:

> 
> I guess this should be :
> <?php echo
> $form->file('uploadfile1',array('size'=>43)); ?>  //
> not .
> in field name
> 
> unless you have multiple records fields then :
> 
> <?php echo
> $form->file('Model.0.uploadfile',array('size'=>43));
> ?>
> <?php echo
> $form->file('Model.1.uploadfile',array('size'=>43));
> ?>
> 
> Hth
> 
> On Apr 3, 5:27 pm, "A.K." <[EMAIL PROTECTED]>
> wrote:
> > Hi there,
> >
> > I have two forms on two separate pages; one for
> bug reports and one
> > for feature requests.  Each has a file field for
> attachments.  The
> > code that both produces the file field is
> identical, as is the code
> > that extracts the value.
> >
> > In the controller, the relevant lines of code is:
> >
> > $filedatas = $this->data['uploadfile1'];
> > $filename = $filedata["name"];
> >
> > In the view, the form field-generating code is:
> >
> > <?php echo
> $form->file('uploadfile.1',array('size'=>43)); ?>
> >
> > Now here's the confusing bit: I have no problems
> with bug reports- the
> > page finds the field and its value without
> problem.  But with the
> > identical code on the feature requests, it only
> ever gets the first
> > letter of the value.  So it finds the field, but
> only gets a bit of
> > the value.
> >
> > Anyone have this happen before?  Any insight?
> >
> > Thanks.
>
> 
> 



      
____________________________________________________________________________________
You rock. That's why Blockbuster's offering you one month of Blockbuster Total 
Access, No Cost.  
http://tc.deals.yahoo.com/tc/blockbuster/text5.com

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