Configure::write('debug', n );
Setting debug to 0 will make make respond with a 404.

Anytime debug is on (more than 0), Cake expects you to be building or
testing the application. Cake does not try to make a difference
between the missing file "/posts/edit/1" and "/files/images/
not_here.jpg". It simply assumes that since it is not a file... the
first "folder" is the controller... the second the action....

/Martin


On Aug 16, 12:56 pm, WebbedIT <[email protected]> wrote:
> I have just started uploading files using the plug-in found at:
>
> http://www.milesj.me/resources/script/uploader-plugin
>
> I have this all working fine, so I can recommend the plug-in for a
> fast and easy solution to uploading files.
>
> Now that I have a selection of files uploaded to the server I want to
> view them and if I type in the path and filenames correctly I see them
> not a problem.  However, if I make a typo cake shows a missing
> controller error rather then a file not found.
>
> Am I just being daft and the server is logging a file not found error,
> but cake is being clever and trying to supply a meaningful error? or
> is there something more sinister here in that a missing controller
> error is not what should be getting displayed when trying to access
> things in /app/webroot/files/...
--~--~---------~--~----~------------~-------~--~----~
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