Put file inside your webroot folder instead. Still link it as /file/demo.pdf, but file folder should be inside webroot. This is why: your /.htaccess file reads:
<IfModule mod_rewrite.c> RewriteEngine on RewriteRule ^$ app/webroot/ [L] RewriteRule (.*) app/webroot/$1 [L] </IfModule> This means that everything is sent as app/webroot. You could modify the above htaccess to add handlers so only it does that for non existing files/directories (NOT recommended), or just move files folder inside webroot. -MI --------------------------------------------------------------------------- Remember, smart coders answer ten questions for every question they ask. So be smart, be cool, and share your knowledge. BAKE ON! blog: http://www.MarianoIglesias.com.ar -----Mensaje original----- De: [email protected] [mailto:[EMAIL PROTECTED] En nombre de bingo Enviado el: MiƩrcoles, 21 de Febrero de 2007 08:59 p.m. Para: Cake PHP Asunto: file upload however, if I create a link such as http://localhost/mysite/file/demo.pdf cake takes over the control and display a page with error: You are seeing this error because controller FilesController could not be found. --~--~---------~--~----~------------~-------~--~----~ 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?hl=en -~----------~----~----~----~------~----~------~--~---
