Thanks for the info... I think I'm going to go with possibly attaching
the MeioUpdate behavior in the beforeFilter method of my controllers.

It doesn't seem like a very "cake" way to do it, but if it's the only
way...

On Oct 23, 8:22 am, Miles J <mileswjohn...@gmail.com> wrote:
> You can try my uploader system, it supports multiple uploads.
>
> http://www.milesj.me/resources/script/uploader-plugin
>
> On Oct 22, 10:25 pm, "Dr. Loboto" <drlob...@gmail.com> wrote:
>
>
>
> > This behavior can work with only one model at time. So you need or
> > load only needed model (MotionFile or SeeFile), or attach-detach
> > behavior manually. I think all will be fine if you remove 'MeioUpload'
> > from $actsAs in all models and will attach it just before save: $this-
>
> > >MotionFile->Behaviors->attach('MeioUpload', array('filename'));
>
> > On Oct 23, 5:01 am, benjam <benjamwel...@gmail.com> wrote:
>
> > > I'm currently using the MeioUpload Behavior 
> > > fromhttp://github.com/josegonzalez/MeioUpload/tree/masterinacouple of
> > > my models on a project of mine and am running into an issue.
>
> > > When I try to upload a file in one of my models (MotionFile), it says
> > > the index cannot be found "SeeFile".
>
> > > SeeFile is the name of the other model that is using the Upload
> > > behavior, so it seems that when Cake gets into what it does and loads
> > > up all the models and behaviors, it loads the MotionFile first
> > > (obviously), and runs the setup method for the Upload Behavior, and
> > > then later on it loads up the SeeFile model (because it's attached
> > > through other models to the MotionFile model), and runs the setup
> > > method for the Upload Behavior again, except this time with the
> > > SeeFile model data instead of the MotionFile model data that I need,
> > > overwriting it, and causing my current issue.
>
> > > Here is the behavior include for my models (same for both).
>
> > >         var $actsAs = array(
> > >                 'MeioUpload' => array('filename'),
> > >         );
>
> > > Anybody experienced this before, and is there a workaround?  Or am I
> > > doing something obviously wrong?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to