http://php.net/manual/en/function.move-uploaded-file.php
On Jan 8, 5:36 am, Krrose27 <[email protected]> wrote: > I am attempting to attach a file that is posted to my server... > > $this->Email->attachments = array($_FILES[log][tmp_name]); > > The above works and the file is attached... > > It however attaches it with the php tmp name.... > > So I attempted the following to attach it as the file name... > > $this->Email->attachments = array($_FILES[log][name] => $_FILES[log] > [tmp_name]); > > No luck... > > Any clues on how to pull this off?
Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" 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?hl=en
