When you say "different server" do you mean one that is on a different
domain/website? If so, you can just redirect to that file and not use
the media view at all.

The media view is used to read local files.

Cheers,
Adam

On Nov 5, 6:15 pm, JuergenRiemer <[EMAIL PROTECTED]> wrote:
> Hi bakers,
>
> I want to use the media view component to manage downloads of files
> that reside on a different server
>
> function download() {
>                 $this->view = 'Media';
>                 $params = array(
>                         'id' => 'afile.pdf',
>                         'name' => 'afile',
>                         'download' => true,
>                         'extension' => 'pdf',
>                         'path' => '\\host\disk_d\files\'
>                 );
>                 $this->set($params);
>
> }
>
> <path> is relative to APP as put in media.php line 111. Do I have to
> modify the file ( take out the APP constant ) to make that work? Is
> there a more elegant way?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to