The file validation is not implemented yet,
i had to write the code (works for me) and uploaded it to
trac.cakephp.org,
This is the ticket
https://trac.cakephp.org/ticket/4170


On Jan 11, 12:41 am, "Louie Miranda" <[EMAIL PROTECTED]> wrote:
> I just want to be able to validate a file upload, but validation don't work.
>
> view
> <?php echo $form->create('Catalog', array('action' => 'update', 'type' =>
> 'file'));?>
>     <?php echo $form->file('File'); ?>
>     <?php echo $form->input('Remarks', array('rows'=>'10', 'cols'=>'50'));?>
>     <?php echo $form->submit('Update pricelist');?>
> <?php echo $form->end(); ?>
>
> model
>     var $validate = array(
>         'File' => VALID_NOT_EMPTY,
>         'Remarks' => VALID_NOT_EMPTY,
>     );
>
> Validation works on Remarks, but on file. It does not say, field is
> required.
>
> Did, i miss something here? I am using 1.2.x (latest beta)
>
> --
> Louie Miranda ([EMAIL PROTECTED])http://www.axishift.com
>
> Security Is A Series Of Well-Defined Steps
> chmod -R 0 / ; and smile :)
--~--~---------~--~----~------------~-------~--~----~
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