ahhhhh i was curious about that. i converted it in to an object and used it as a component from my controller, but it would make more sense to be able to have access to the file handling functions from my file model.
so, if i convert it back to a model and put it in my /app/models/ then i can access it from any of my models yes? how do i go about doing that? thanks guys, i think there is going to be something new to be learnt everyday. Cake Rocks! On 16/08/06, JitZhang <[EMAIL PROTECTED]> wrote: > > $this->params['form']['file'] > it 's what mean? > > save($this->params['form']['data']['Product']['imgname']['tmp_name'], > > $this->params['form']['data']['Product']['imgname']['name'], > $directory="img/", $overwrite=false) ; > > is right? > > but > $this->params['form']['data']['Product']['imgname']['tmp_name'] value > is "D" > $this->params['form']['data']['Product']['imgname']['name'] value is > also "D" > > can you send mail ([EMAIL PROTECTED]) to me a case? > thanks! > > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
