Re: Media plugin - usage questions

2011-03-08 Thread David Persson
Hi Foroct, I've answered you in the other thread. - David -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group

Re: Media plugin - usage questions

2011-03-08 Thread Foroct
I'm trying to do something similar (as described in this thread http://groups.google.com/group/cake-php/browse_thread/thread/9fdfef27f01e5ef7). I'm able to POST my image and save it to a folder but I don't know how to invoke the media plugin to make multiple sizes of that file. How were you able t

Re: Media plugin - usage questions

2011-03-07 Thread David Persson
Hi Will, I think what you're searching for can be found at [1]. Use the method like this: $this->Post->save($this->data); $file = $this->Post->transferred(); [1] https://github.com/davidpersson/media/blob/1.3/models/behaviors/transfer.php#L461 - David -- Our newest site for the community: C

Re: Media plugin - usage questions

2011-02-26 Thread John Andersen
ad 1) You have to use the path constant MEDIA to identify where the files are stored and then combine it with the information for the requested file - directory and filename - adding it all together to get the filename with path information. Read the configuration for the Media plugin here: https:/

Media plugin - usage questions

2011-02-25 Thread will.brooke
Hi All, I am trying to use the media plugin (https://github.com/davidpersson/ media) for a funky API project. I have 2 issues right now. I can POST susbmit a file and it gets saved. huzzah. (if you care, they are CSV files) what I need is: 1.) after save completes in the controller, I need the p