Tuesday, March 3, 2009

Re: file validation

Well Kaushik

I have done my part of validation in controller.

The following site would be helpful in that matter
http://www.keithmedlin.com/2008/01/cakephp-12-file-upload/
http://cakebaker.wordpress.com/2006/04/15/file-upload-with-cakephp/
http://cakebaker.42dh.com/2006/04/15/file-upload-with-cakephp/

Regarding Model validation check this site but I have not work with this.
http://www.jonnyreeves.co.uk/2008/06/cakephp-uploaded-file-validation-in-models/

Regards
Sijo Jose C


On Tue, Mar 3, 2009 at 3:35 PM, kaushik <kaushikworld@gmail.com> wrote:

I want to set a system where file uploading is must and i also want to
check the extension of file. Is it possible to arrange the validation
from model or I have to check from controller.

Can anyone give any idea?




--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

No comments: