On Jul 13, 11:23 am, Gorka <[EMAIL PROTECTED]> wrote:
> I agree that file uploading should be made as generic as possible, and
> enabling some callbacks for file processing should be a great bonus.

Hmm,

I'm currently pondering "ImageUploadBehavior extends UploadBehavior"

where upload behavior has empty _postSave __postDelete (referring to
after saving the original file to the disk, and after deleting the
original file from the disk) methods and the image version has
functionality to create/delete thumbs, and DocUploadBehavior has
whatever else you might want to use etc.

At least then the 'essential' functionality can be separated from
image (or whatever) specific calls/functionality.

Or maybe even 'MiUploadBehavior extends UploadBehavior', and a call to
beforeSave{mime}{Type} is made if the method exists etc..

More pondering required.

AD


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