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