> By the way, I'm not sure about the placement of upload files as a
> behavior. I see it on the controller layer, but not so sure :-(.

Yeah, I've thought it too, but then put it this way: uploading a file
is storing data, then is a model thing. And the behaviour was there
(Thanks a lot Chris Partridge! ) and works pretty well.

This is how I tweaked it:

Tweaked Behaviour: http://bin.cakephp.org/saved/19658

Example:

Model : http://bin.cakephp.org/saved/19659

Controller: http://bin.cakephp.org/saved/19660

View:  http://bin.cakephp.org/saved/19661

Hope it helps.

Also I use this amazing helper: 
http://bakery.cakephp.org/articles/view/image-resize-helper
and put some code in the behaviour to delete cached thumbs when the
record is deleted.

It's all there, just read the code.



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