CakePHP Media Plugin of David Persson and CDN

2012-01-30 Thread byqsri
Hi I use the fantastic Media Plugin of David Persson. For now I have all my uploaded files in the same server I would ask if someone uses this plugin with some CDN and how use it with CDN? Many Thanks -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out

Re: CakePHP Media Plugin of David Persson and CDN

2012-01-30 Thread jeremyharris
Add a behavior that has an afterSave and afterDelete that take care of it (or attach those actions to your model). Here's a helper function to get a list of files based on your filters set (hardcoded for images, but you can adapt it to use whatever types you want). Once you have that list of

CakePHP Media Plugin quality of image

2011-11-28 Thread byqsri
Hi I'm using Media Plugin of David Persson (https://github.com/ davidpersson/media) and it is very very useful. I would ask a question that I can't resolve. My question is that when I do a filtering (fitInside) of an upload image Configure::write('Media.filter.image', array(

Re: CakePHP Media Plugin

2011-03-07 Thread David Persson
Hi Alberto, If I were you I'd just implement my own validation rule for that. See [1] for how that is accomplished in the plugin. Be sure to also check the chapter about that topic at book.cakephp.org. [1] https://github.com/davidpersson/media/blob/1.3/models/behaviors/transfer.php#L741 -

CakePHP Media Plugin

2011-03-04 Thread alberto
Hi, I want to add a validate rule for my model in the CakePHP Media Plugin. I want that for this rule 'pixels' = array('rule' = array('checkPixels', '1366x768')), the pixels have to be exactly se same of 1366x768 and not = of 1366x768 Is it possible to use this rule? Thank in advance