Re: trouble with Media view

2009-05-02 Thread brian
I don't see how that would change anything, as it's the $id that's appended to $path. The issue appears to be that is_dir() can take a relative path. On Fri, May 1, 2009 at 5:04 PM, bram wrote: > > Did you try 'name' => 'test' (without extension)? > > I don't know why the parameters to the media

Re: trouble with Media view

2009-05-01 Thread bram
Did you try 'name' => 'test' (without extension)? I don't know why the parameters to the media view are that complicated... note that the extension should be lower case. In my application, the absolute path to the file is known. Even then, it's quite a hassle to get in properlly in the media temp

trouble with Media view

2009-04-20 Thread brian
Media view keeps throwing up a 404 because of the following code: if (is_dir($path)) { $path = $path . $id; } else { $path = APP . $path . $id; } if (!file_exists($path)) { header('Content-Type: text/html'); $this->cakeError('error404'); } Here are my params, btw