Media Plugin

2015-01-28 Thread Kluny
I'm using David Persson's excellent Media plugin, and found an odd bug. I use it in a Gallery plugin, and when the gallery contains a lot of images (maybe 100? haven't been able to determine exactly), deletion doesn't work. I'll use the usual mechanism of deleting, and the image doesn't get

issues with media plugin generator behavior

2014-08-23 Thread Matthias Hollerbach
://deepliquid.com/content/Jcrop.html and the Media Plugin from David Persson https://github.com/bmcclure/CakePHP-Media-Plugin . *Setup:* All mediafiles are stored by the Attachment Model which is based of the one shipped with the Mediaplugin. Other Models can use the Attachment Model to store mediafiles

Re: Media PLugin

2012-07-14 Thread AppSynergy
exist neither should the record. I tend to create a separate table for attachments for this very reason. A user should be allowed to exist without an image. On Tuesday, February 28, 2012 5:42:11 AM UTC-8, Jeremy Burns wrote: I'm using David Persson's media plugin. I have a users table

Media Plugin Question - Move an existing record

2012-06-21 Thread Paul Redmond
is in the wrong place. I am trying to figure out how/if I can use the media plugin to move the file from the original path, to a new path. I know how to do that using the beforeSave (detect change) and afterSave (move if needed) but I'd like to use the media plugin to make the move as it automatically

Deleting Media Plugin attachments

2012-05-30 Thread BarbarianGeek
I'm using Media Plugin with 2.1 is the monolithic setup (i.e. using the Polymorphic behavior). For this I have a Project that hasMany Attachments. How do I delete an attachment without deleting the project? I get errors when I try to use $this-Project-Attachment-find(). -- Our newest site

Re: CakePHP (2.1) Media Plugin - Multi File Upload

2012-05-14 Thread double07
Just thought I'd post my slightly cleaner solution to this which makes use of a modified version of the attachments element in the media plugin. This allows you to use the attachment multiple times in a form for when you have different groups of attachments i.e. photos, files, videos etc. I'm

Re: CakePHP (2.1) Media Plugin - Multi File Upload

2012-05-09 Thread double07
Well this whole project has made me realise how much I suck at Ajax/JS etc. I ended up getting this working using cakephp's HTML5 multi file support and converting that data array to one that the media plugin would understand (as per Jeremy's first suggestion!). In case anybody else is looking

Re: CakePHP (2.1) Media Plugin - Multi File Upload

2012-05-01 Thread jeremyharris
I don't have any templates, but I use file-uploader[1] on a currently active project. It doesn't require jQuery but works pretty nicely. It sends each upload as a separate request, so write the controller code as if you're receiving one file (like the media plugin examples) and you should

Re: CakePHP (2.1) Media Plugin - Multi File Upload

2012-04-30 Thread double07
Hi Jeremy, Not having much luck with the saving manually option, do you having any working examples of drag and drop (jquery) I can look at? Thanks, -Brett On Apr 17, 7:44 am, jeremyharris funeralm...@gmail.com wrote: Or, instead of using the multiple option, you can try processing them each

Re: CakePHP (2.1) Media Plugin - Multi File Upload

2012-04-24 Thread double07
the cakephp media plugin in my project using the monolithic style attachments table, i.e. all the attachments go in the one table with foreign_key, model, group etc. saved with the file details. So my model looks like: class ProjectProfile extends AppModel { var $name = 'ProjectProfile'; var

Re: Cake Media Plugin: How to create dynamic directories

2012-04-20 Thread James Dcunha
$path .= !empty($extension) ? '.' . strtolower($extension) : null; return $path; } This is defined on the model that $actsAs Media.Transfer. On Thursday, April 19, 2012 8:49:00 AM UTC-7, James Dcunha wrote: Hello all, With cake media plugin can we configure the plugin to create dynamic

Cake Media Plugin: How to create dynamic directories

2012-04-19 Thread James Dcunha
Hello all, With cake media plugin can we configure the plugin to create dynamic subdirectories dynamically inside the transfer folder without changing the plugin core code. Example with default settings I can transfer document files to WWW_ROOT/media/transfer/doc/test.doc Could we configure

Re: Cake Media Plugin: How to create dynamic directories

2012-04-19 Thread jeremyharris
that $actsAs Media.Transfer. On Thursday, April 19, 2012 8:49:00 AM UTC-7, James Dcunha wrote: Hello all, With cake media plugin can we configure the plugin to create dynamic subdirectories dynamically inside the transfer folder without changing the plugin core code. Example with default

Re: CakePHP (2.1) Media Plugin - Multi File Upload

2012-04-16 Thread Paulo de Almeida
Try MeioUpload. https://github.com/jrbasso/MeioUpload 2012/4/15 double07 br...@bluenectar.com.au Hi All, I'm using the cakephp media plugin in my project using the monolithic style attachments table, i.e. all the attachments go in the one table with foreign_key, model, group etc. saved

Re: CakePHP (2.1) Media Plugin - Multi File Upload

2012-04-16 Thread jeremyharris
multiple upload). On Sunday, April 15, 2012 5:42:25 PM UTC-7, double07 wrote: Hi All, I'm using the cakephp media plugin in my project using the monolithic style attachments table, i.e. all the attachments go in the one table with foreign_key, model, group etc. saved with the file details. So

CakePHP (2.1) Media Plugin - Multi File Upload

2012-04-15 Thread double07
Hi All, I'm using the cakephp media plugin in my project using the monolithic style attachments table, i.e. all the attachments go in the one table with foreign_key, model, group etc. saved with the file details. So my model looks like: class ProjectProfile extends AppModel { var $name

Cake Media Plugin: How to enable .docx files for upload and retrieve errors if upload fails

2012-04-12 Thread James Dcunha
Hello all, I am using CakePHP 1.3 and Cake Media plugin (https://github.com/davidpersson/media). With the default setting I am able to upload images and pdf. I tried to upload a .docx file and I am not able to upload it. Following is the validate rule in my Document model ?php class

Media Plugin begginer problems....

2012-03-16 Thread avairet
Hi, I'm trying to use David Person's Media Plugin with an hasMany association and it doesn't work... My environment: - Win XP - CakePHP 1.3.14 - PHP 5.3.8 - Media Plugin 1.3 Media plugin is in my App/plugins directory. In my config/boostrap.php, I have: require APP.'plugins/media/config

MD5 file warning with Media Plugin

2012-03-01 Thread Nif
Hi there, I am trying to use the Media plugin for Cake 2.0 (https://github.com/ bmcclure/CakePHP-Media-Plugin) and all appears to be working except that I am getting the warning below on 2 of my view pages. I have searched high and low for answers, but am not finding anything. Warning (2

Re: MD5 file warning with Media Plugin

2012-03-01 Thread AD7six
On Thursday, 1 March 2012 11:07:34 UTC+1, Nif wrote: Hi there, I am trying to use the Media plugin for Cake 2.0 (https://github.com/ bmcclure/CakePHP-Media-Pluginhttps://github.com/bmcclure/CakePHP-Media-Plugin) and all appears to be working except that I am getting the warning

support regarding cakephp 2.0 media plugin

2012-03-01 Thread DHANUSH R L
hi, Im a beginner and asked to do a form for batch upload of images and so I'm trying hard to understand the concept, i found few online and all were pretty old, means they were cakephp 1.3. I would be very thankful, if any one could help me with a detailed tutorial on batch upload of images.

Re: Media PLugin

2012-02-29 Thread jeremyharris
exist neither should the record. I tend to create a separate table for attachments for this very reason. A user should be allowed to exist without an image. On Tuesday, February 28, 2012 5:42:11 AM UTC-8, Jeremy Burns wrote: I'm using David Persson's media plugin. I have a users table

Re: Media PLugin

2012-02-29 Thread Keith Gorman | Class Outfit
Burns wrote: I'm using David Persson's media plugin. I have a users table that contains the fields necessary to link to an image file, but a user does not have to have an image. When I include the Media.Coupler behaviour in the User model User-create always fails on User-save when the user does

Re: Media PLugin

2012-02-29 Thread jeremyharris
. On Tuesday, February 28, 2012 5:42:11 AM UTC-8, Jeremy Burns wrote: I'm using David Persson's media plugin. I have a users table that contains the fields necessary to link to an image file, but a user does not have to have an image. When I include the Media.Coupler behaviour in the User model

Re: Media Plugin - Getting Started

2012-02-29 Thread nathan
boston.dus...@gmail.com wrote: I'm just getting started with CakePHP and also David Persson's Media plugin (http://github.com/davidpersson/media). I've got my app working but I'm having a difficult time getting the Media plugin working. I figured I'd start this thread so I could A.) get

Media PLugin

2012-02-28 Thread Jeremy Burns
I'm using David Persson's media plugin. I have a users table that contains the fields necessary to link to an image file, but a user does not have to have an image. When I include the Media.Coupler behaviour in the User model User-create always fails on User-save when the user does not have

Re: Media PLugin

2012-02-28 Thread jeremyharris
: I'm using David Persson's media plugin. I have a users table that contains the fields necessary to link to an image file, but a user does not have to have an image. When I include the Media.Coupler behaviour in the User model User-create always fails on User-save when the user does not have

Re: Media PLugin

2012-02-28 Thread Jeremy Burns | Class Outfit
, February 28, 2012 5:42:11 AM UTC-8, Jeremy Burns wrote: I'm using David Persson's media plugin. I have a users table that contains the fields necessary to link to an image file, but a user does not have to have an image. When I include the Media.Coupler behaviour in the User model User-create

Re: Media PLugin

2012-02-28 Thread jeremyharris
. On Tuesday, February 28, 2012 5:42:11 AM UTC-8, Jeremy Burns wrote: I'm using David Persson's media plugin. I have a users table that contains the fields necessary to link to an image file, but a user does not have to have an image. When I include the Media.Coupler behaviour in the User model User

Re: Media PLugin

2012-02-28 Thread Jeremy Burns | Class Outfit
28, 2012 5:42:11 AM UTC-8, Jeremy Burns wrote: I'm using David Persson's media plugin. I have a users table that contains the fields necessary to link to an image file, but a user does not have to have an image. When I include the Media.Coupler behaviour in the User model User-create always

Re: Media Plugin of David Persson is for cake 1.3 and for cake 2.0?

2012-02-23 Thread Rodrigo Rodrigues Moyle
Have you tried this plugin: https://github.com/josegonzalez/upload/tree/2.0 -- 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

Media Plugin of David Persson is for cake 1.3 and for cake 2.0?

2012-02-22 Thread byqsri
Hi I would open a discussion between all developers that use cakephp. I think that a frequent problem in development is the File Upload. For Cake 1.3 exists the fantastic Media Plugin of David Persson that for me is it the best plugin about File Upload. But Media Plugin of David Persson hasn't

Re: Media Plugin of David Persson is for cake 1.3 and for cake 2.0?

2012-02-22 Thread Stephen Speakman
It may be an idea to make changes to the media plugin for 2.x and share it if lisences arent an issue. I'm still on 1.3 for now but it would be nice to contribute. Sent from my iPhone On 22 Feb 2012, at 17:01, byqsri marco.rizze...@gmail.com wrote: Hi I would open a discussion between all

Re: Media Plugin of David Persson is for cake 1.3 and for cake 2.0?

2012-02-22 Thread jeremyharris
See: https://github.com/davidpersson/media/issues/66 -- 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,

David Persson Media Plugin on IIS 7

2012-02-06 Thread John Emmanuel
I am trying to get the plugin to work on IIS 7. I have set the correct permissions to the media folder under webroot. However I am getting a 404 when i try to access uploaded images. Server logs show a 200 status. I am a newbie to cake and media plugin. Could somebody tell me what the problem

Re: David Persson Media Plugin on IIS 7

2012-02-06 Thread jeremyharris
If you used the media shell to protect your files, it *could* be why. Check for an .htaccess file under /webroot/media. If not, we'll need more information. Can you get to them locally? Did you check to make sure they are uploaded correctly? Were the permissions you set recursive? -- Our

Re: David Persson Media Plugin on IIS 7

2012-02-06 Thread John Emmanuel
Hi Jeremy, Thank you very much for you reply. I have not protected the media folders (no htaccess in media folder). Also Godaddy is the hosting provider and I am tied to IIS. I had already removed 'recursive permissions' from parent for the media, transfer and filter folder (and subfolders) and

Re: David Persson Media Plugin on IIS 7

2012-02-06 Thread jeremyharris
If the 404 isn't being sent by the server, it's probably being sent by Cake. Turn on debug to see what errors cake generates, or look at the debug log (/tmp/logs/debug.log). Any clues in there? -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the

Re: David Persson Media Plugin on IIS 7

2012-02-06 Thread John Emmanuel
Hi Jeremy, Nothing in the app debug logs. However I looked at the IIS server logs. All requests to the uploaded images are being routed through index.php. I have used the rewrite rules from here - http://book.cakephp.org/1.3/view/1636/URL-Rewrites-on-IIS7-Windows-hosts I am not sure if I

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: David Persson Media Plugin - Batch Image Upload

2011-11-10 Thread BenJsno
Whithout flash, you can use jQuery fileuploader plugin : http://pixelcone.com/tutorial/ajax-file-upload-using-jquery-and-cakephp-media-plugin/ On 9 nov, 07:28, Shinya Koizumi sh.koiz...@gmail.com wrote: I wouldn't use flash ( I just can't ignore iOS ) , but I would use this onehttp

David Persson Media Plugin - Batch Image Upload

2011-11-08 Thread BigZee
I have been using the media plugin for quite some time on multiple sites. I absolutely love it and it has always worked well for any application I might need it on. However I have run into a situation and would like to use this plugin, but cannot seem to find any resources concerning this. I did

Re: David Persson Media Plugin - Batch Image Upload

2011-11-08 Thread Greg Skerman
to upload multiple files, there is a flash gadget which can be used called SWFUpload here is a demo showing a classic multi-select file browser: http://demo.swfupload.org/v220/formsdemo/index.php Its not a complete media plugin, you'll need to either write a back end or massage an existing back

Re: David Persson Media Plugin - Batch Image Upload

2011-11-08 Thread Shinya Koizumi
a classic multi-select file browser: http://demo.swfupload.org/v220/formsdemo/index.php Its not a complete media plugin, you'll need to either write a back end or massage an existing back end into service. On Wed, Nov 9, 2011 at 5:10 AM, BigZee ad...@2ndrevolt.com wrote: I have been using

Re: Plupload and Media Plugin

2011-11-07 Thread Mo
Persson's Media Plugin integrated however it is not ideal to handle big uploads. Is there a way to integrate Pulpload (or something similar) to work with the Media plugin and Cakephp? Has anyone of you done this already? Regards -- Our newest site for the community: CakePHP Video

Plupload and Media Plugin

2011-11-06 Thread Mo
Hey I need the ability to upload large (up to 100MB) files. Up to now I have the David Persson's Media Plugin integrated however it is not ideal to handle big uploads. Is there a way to integrate Pulpload (or something similar) to work with the Media plugin and Cakephp? Has anyone of you done

Re: Plupload and Media Plugin

2011-11-06 Thread Zaky Katalan-Ezra
the ability to upload large (up to 100MB) files. Up to now I have the David Persson's Media Plugin integrated however it is not ideal to handle big uploads. Is there a way to integrate Pulpload (or something similar) to work with the Media plugin and Cakephp? Has anyone of you done this already

Can't Get Media Plugin to Work with Nested Models

2011-10-03 Thread Mark
I have been using the Media Plugin by David Persson and I think it's great and has saved me a lot of time. I started out with an Invoice model that hasMany Attachments and everything worked well. I then added Materials to my invoice and tried added Attachments to a specific material associated

Having Trouble with Media Plugin and a Nested Model HTTP Post

2011-10-03 Thread Mark Fruhling
I have been using the Media Plugin by David Persson and I think it's great and has saved me a lot of time. I started out with an Invoice model that hasMany Attachments and everything worked well. I then added Materials to my invoice and tried added Attachments to a specific material associated

David Persson Media Plugin - data to different database fields

2011-09-30 Thread Constantin.FF
Hello, I just installed David Persson Media Plugin to use it with Ajax uploader. The tutorial from here: http://pixelcone.com/tutorial/ajax-file-upload-using-jquery-and-cakephp-media-plugin/ But my database have different field names. And I would like to save some more information, not only

David Perssons Media Plugin - does it work at all on windows

2011-09-23 Thread barricades
Hi there, I'm new to cakephp and trying to install Media Plugin in my test app. By all accounts media plugin is the best plugin of it's kind, the problem I have is I'm developing on my localhost on a windows machine. I get stuck when I get to doing the: cake media init chmod -R a+rwX app/webroot

Re: Media plugin and user plugin

2011-09-18 Thread WebbedIT
the Media behaviors to user model $actsAs. Its working perfectly in other controllers. Anyway I found a solution: I needed the media plugin in order to upload the user profile image. I removed the 'Media.Coupler' from the user model $actsAs and add this code at user controller upload_image action

Re: Media plugin and user plugin

2011-09-17 Thread Zaky Katalan-Ezra
I didn't change register action at all. I just added the Media behaviors to user model $actsAs. Its working perfectly in other controllers. Anyway I found a solution: I needed the media plugin in order to upload the user profile image. I removed the 'Media.Coupler' from the user model $actsAs

Re: Media plugin and user plugin

2011-09-16 Thread WebbedIT
More information required ... - have you echoed $this-data on submit to see what data there is - how are you calling save in the controller? - have you looked at the sql dump to see what Cake is trying? HTH, Paul @phpMagpie On Sep 15, 11:11 am, ZAky procsh...@gmail.com wrote: adding media

Re: Media plugin transferTo

2011-09-16 Thread BenJsno
)) { […] $dirname = 'files/'.$this-Session-read('Auth.User.id').'/'.$this- Post-id; $this-Post-saveField('dirname', $dirname); // transfert } else { // Error } } The simplest would be to let Media plugin transfert in Media folder

Media plugin and user plugin

2011-09-15 Thread ZAky
adding media plugin, 'Media.Coupler', behavior to users plugin model prevent creating new user. I want to save the profile image path in users table. Any suggestions? -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site

Re: Media plugin transferTo

2011-09-14 Thread BenJsno
You have to save your post before upload the file. in your Post_controller : function add() { [...] if (!empty($this-data)) { $this-Post-create(); if ($this-Post-save($this-data)) {

Re: Media plugin transferTo

2011-09-14 Thread Zaky Katalan-Ezra
Thank you Media plugin some how bind to the save function. So How do I tell the media plugin not to run after save and run only when I have the post_id? On Wed, Sep 14, 2011 at 11:47 AM, BenJsno bench...@yahoo.fr wrote: You have to save your post before upload the file. in your

Media plugin transferTo

2011-09-13 Thread ZAky
I save my posts files under /files/[user_id]/[post_id]/[image]. This mean I need to know the just seved post id in Post-transfer_to. How do I achieve that? Thank you -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site

Re: Media Plugin Tutorial

2011-08-24 Thread Ben McClure
Here's a simple tutorial to help get you started: http://sopix.wordpress.com/2010/12/28/media-plugin-of-cakephp-tutorial/ Ben -- 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

Media Plugin Tutorial

2011-08-23 Thread 8vius
Anyone know where I can find a tutorial for David Persson's Media Plugin Tutorial? Documentations seems scarce and questions here are all relating to issues with the plugin, there doesn't seem to be a starting point. -- Our newest site for the community: CakePHP Video Tutorials http

Re: David Persson Media Plugin and saveAll

2011-08-03 Thread theclansman
Hi Michal, I run into the same problem and finally found that I had to remove the 'Media.Coupler' from the $actAs array. Hope that works for you too! Theclansman On Jul 8, 10:42 pm, michalmalinowski mmichal.malinow...@gmail.com wrote: Hey, I have the same problem as

David Persson Media Plugin and saveAll

2011-07-08 Thread michalmalinowski
Hey, I have the same problem as Brad http://groups.google.com/group/cake-php/browse_thread/thread/aa331e6a9938f242/779445eead7e9b12?lnk=gstq=saveall+media#779445eead7e9b12 I am able to edit record with attachment, change attachment, change user data etc. But I can not create new record in the

media plugin filter configuration multiple issue

2011-05-29 Thread crazyDavid
hi, i am using media plugin 1.3 alpha in cakephp 1.3. I need to upload files from 2 different models with different sizes. But there is only one Filter configuration for the plugin. Is there a way around it so i can use the plugin to generate different file sizes for different models? thanks

Re: media plugin filter configuration multiple issue

2011-05-29 Thread crazyDavid
well.. i guess i solved the problem. for anyone else who is facing a similar one, the solution is to copy the configuration in the model file itself On May 29, 11:17 pm, crazyDavid iamcrazyda...@gmail.com wrote: hi, i am using media plugin 1.3 alpha in cakephp 1.3. I need to upload files from 2

how to embed image in david persson's media plugin

2011-05-29 Thread crazyDavid
I'm using Media Plugin 1.3 beta with CakPHP 1.3. I've successfully uploaded the images with the plugin. But how do i use the Media helper to embed the image file uploaded in the view??? plz help! Thanks! -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check

David Persson's Media Plugin

2011-05-04 Thread Stefan Schlesinger
Hello Folks, I'm working on my first project with cakephp and I ran into an issue when trying to implement file uploads: 1) I'm trying to use the media plugin for my application. I'm having problems to apply the polymorphic behavior to the model. Here are my models and the controller: models

Re: David Persson - Media Plugin - Handing .docx and .xlsx uploads

2011-04-28 Thread designv...@gmail.com
/707ab2cd6b9452403cd56fd4aac... The fix has also been already propagated to the media plugin. In case it doesn't work for you please open an issue here:https://github.com/davidpersson/media/issues or therehttps://github.com/davidpersson/mm/issues - David -- Our newest site for the community: CakePHP

Re: David Persson - Media Plugin - Handing .docx and .xlsx uploads

2011-04-27 Thread designv...@gmail.com
explanation is that I know the author checks the group fairly regularly and figured if there was a 'quick fix' he'd know about it. The Media Plugin is an excellent example of a pluign and quite complicated, I would much rather implement an 'official' fix than dive in and start hacking it around myself

Aw: Re: David Persson - Media Plugin - Handing .docx and .xlsx uploads

2011-04-27 Thread David Persson
Hey, I think this commit will fix the issues with the mapping between MIME-type and name. https://github.com/davidpersson/mm/commit/707ab2cd6b9452403cd56fd4aaccc8ec345919df The fix has also been already propagated to the media plugin. In case it doesn't work for you please open an issue here

David Persson Media Plugin

2011-04-27 Thread bradmaxs
More than one of my apps are doing this so I am very confused. I am using Show hasMany Attachment. I try and create a new record and it uploads and resizes the image and saves the record to my Attachment model without a foreign_key but with the correct model (Show). However, it does NOT save the

Re: David Persson - Media Plugin - Handing .docx and .xlsx uploads

2011-04-26 Thread designv...@gmail.com
Anyone? On Mar 22, 12:13 pm, designv...@gmail.com designv...@gmail.com wrote: Hi there, Has anyone got any idea how to get the Media Plugin to recognise Office 2007 files correctly? I can upload old .doc files fine and they get put in the 'doc' folder, and don't fail the mime validation

Re: David Persson - Media Plugin - Handing .docx and .xlsx uploads

2011-04-26 Thread cricket
? On Mar 22, 12:13 pm, designv...@gmail.com designv...@gmail.com wrote: Hi there, Has anyone got any idea how to get the Media Plugin to recognise Office 2007 files correctly? I can upload old .doc files fine and they get put in the 'doc' folder, and don't fail the mime validation rule

Re: David Persson - Media Plugin - Handing .docx and .xlsx uploads

2011-04-26 Thread Ryan Snowden
...@gmail.com wrote: Hi there, Has anyone got any idea how to get the Media Plugin to recognise Office 2007 files correctly? I can upload old .doc files fine and they get put in the 'doc' folder, and don't fail the mime validation rule, but it really doesn't like .docxfiles.. Any

Re: Media Plugin — Trouble with filtered files

2011-04-25 Thread skimmas
ups... Ups, my bad. Should have been Configure::write('Media.filter.image.s', array( On Apr 25, 1:47 am, skimmas skim...@gmail.com wrote: in my config/core.php I added /* CAKE MEDIA PLUGIN */ require APP . 'plugins/media/config/core.php'; Configure::write('Media.filter.document.s', array

Media Plugin — Trouble with filtered files

2011-04-24 Thread skimmas
in my config/core.php I added /* CAKE MEDIA PLUGIN */ require APP . 'plugins/media/config/core.php'; Configure::write('Media.filter.document.s', array( 'convert' = 'image/jpeg', 'compress' = 1.5, 'fit' = array(100, 100) )); Yet the media plugin is still generating a png image. Do you

Re: tiny question on Media plugin and CouplerBehavior

2011-04-12 Thread BenJsno
method to delete all files (Transfert and filters) app/models/mediafile.php : pre class Mediafile extends AppModel{ var $name = Mediafile; //media plugin behaviors var $actsAs = array( 'Media.Generator' = array( 'baseDirectory

Media Plugin + MM + image generated with an other extension than image transfered

2011-04-12 Thread BenJsno
Hi, I have an other problem with media plugin. when I upload a jpeg file with .jpeg extension, in my DB i have, for exemple, picture.jpeg in the basename field. But the Generator Behavior make filter versions with .jpg extension. So i don't have a correct path for filter versions. I have

Re: tiny question on Media plugin and CouplerBehavior

2011-04-11 Thread BenJsno
something my new app/model/mediafile.php : class Mediafile extends AppModel{ var $name = Mediafile; //media plugin behaviors var $actsAs = array( 'Media.Coupler' = array( 'baseDirectory' = MEDIA_TRANSFER

Re: tiny question on Media plugin and CouplerBehavior

2011-04-05 Thread David Persson
Hi, The coupler behavior's beforeSave method looks like it is doing too much having too many sideeffects. I'll take a look at it and see if I can reduce those to a mininum. Will get back and post the results than. - David -- Our newest site for the community: CakePHP Video Tutorials

tiny question on Media plugin and CouplerBehavior

2011-04-04 Thread BenJsno
Hello, I would like to use the Media plugin in my application and my question is in media/models/behaviors/coupler.php, what is the goal of the line 104 ? is it usefull for something ? line 104 : unset($Model-data[$Model-alias]); In my exemple, I have a table Mediafiles CREATE TABLE `mediafiles

David Persson - Media Plugin - Handing .docx and .xlsx uploads

2011-03-22 Thread designv...@gmail.com
Hi there, Has anyone got any idea how to get the Media Plugin to recognise Office 2007 files correctly? I can upload old .doc files fine and they get put in the 'doc' folder, and don't fail the mime validation rule, but it really doesn't like .docx files.. Any suggestions? d//t -- Our newest

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

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

Edit with Media Plugin David Persson

2011-03-07 Thread alberto
Hi, When I try to edit a media file ex. I need to replace the image The main image was replaced but the filter (an 'm' and 'l') image wasn't replaced. And the replaced image wasn't deleted. Where I'm wrong? Thanks in advance! Alberto -- Our newest site for the community: CakePHP Video

Re: Edit with Media Plugin David Persson

2011-03-07 Thread David Persson
of a file in the current version of the media plugin. It turned out that how, which and when to delete the generated versions is highly application specific. However you can still take care of that yourself for example in the before or afterDelete of your file model. See https://gist.github.com/859371

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 -

Re: more fields for David Persson's media plugin form?

2011-03-07 Thread David Persson
Hello Tan Cheng, Just add a new input to your form: echo $form-input('file', array('type' = 'file', 'label' = false, 'class' = 'imageUpload')); echo $form-input('title'); Be sure $this-data looks somewhat like this in your controller action: array( 'Gallery' = array( 'file' = '...',

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:

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

more fields for David Persson's media plugin form?

2011-03-03 Thread Tan Cheng
Hi everyone, I am now using David Persson's media plugin to handle the ajax upload now. But the upload form only shows the file type input, like ?php echo $form-create('Gallery', array('type' = 'file')); echo $form-input('file', array('type' = 'file', 'label

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

Media Plugin - Newbie Questions

2011-02-21 Thread mjhnlca
I'm trying to set up the Media plugin, but am having problems. I have a PressRelease model, and while adding an entry I would like to choose and upload a PDF file to associate with it. But when adding an entry, the press_releases table receives an entry, and the attachment table does not. *If I

Re: Media Plugin - Newbie Questions

2011-02-21 Thread kdubya
I don't know anything about the Media plugin, however your problem may be with how you have created your inputs in the view. Have you looked at the structure of $this-data once the form has been submitted to your action (admin_add)? In order for saveAll() to work. It should look something like

Re: David Persson Media Plugin - regenerate image versions

2011-01-28 Thread David Persson
Hi, Have a look at the Media shell. It comes with the plugin and features one specific task which may be helpful in your situation. $ cake media make Will prompt you for source and destination path and will then recreate versions of each file. - David -- Our newest site for the community:

Re: David Persson Media Plugin - regenerate image versions

2011-01-28 Thread designv...@gmail.com
Ahhh! Brilliant! Now I just have to work out how to run that on the server - I can run the shell stuff locally, but no idea how to do it on my Media Temple server... but awesome news, thanks! d. On Jan 28, 9:47 am, David Persson davidpers...@gmx.de wrote: Hi, Have a look at the Media shell.

David Persson Media Plugin - regenerate image versions

2011-01-26 Thread designv...@gmail.com
Hi there, I have very successfully got the Media/Attachments plugin working on my new site, and I'm really impressed, but have run into a slight problem... The site is a rebuild of an existing site and has around 2000 images attached to news stories (the app folder weighs in at around 900mb!),

  1   2   >