Re: Making a file downloadable

2010-11-15 Thread cricket
On Mon, Nov 15, 2010 at 4:59 AM, rlparker81  wrote:
>
> Hi,
>
> I am having a similar problem only my folder 'files' is already in the
> webroot directory.
>
> The files folder contains xml files which the site takes some of its
> contents from. Sometimes it works fine and reads the xml files but others it
> looks for files_controller
>
> Does anyone know why it's doing this?

Look at the RewriteRules in your .htaccess (or apache conf). If the
file cannot be found, the request is passed to Cake. Make sure that
the requested file exists. Also, be aware that the request is
case-sensitive.

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 cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: Making a file downloadable

2010-11-15 Thread rlparker81

Hi,

I am having a similar problem only my folder 'files' is already in the
webroot directory. 

The files folder contains xml files which the site takes some of its
contents from. Sometimes it works fine and reads the xml files but others it
looks for files_controller

Does anyone know why it's doing this?

thanks

Rachael
-- 
View this message in context: 
http://cakephp.1045679.n5.nabble.com/Making-a-file-downloadable-tp3235245p3265360.html
Sent from the CakePHP mailing list archive at Nabble.com.

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 cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: Making a file downloadable

2010-10-25 Thread WhyNotSmile
Thank you!  That worked!

On Oct 25, 12:14 pm, Tilen Majerle  wrote:
> make a folder in your webroot called "userfiles" and inside this folder you
> should have files...then should work...
> --
> Tilen Majerlehttp://majerle.eu
>
> 2010/10/25 WhyNotSmile 
>
> > I know I'm missing something simple here, but I'm trying to make a
> > file downloadable from my cakePHP site... I can show the link to the
> > file, which (after uploading to the server via FCK) is domain.co.uk/
> > userfiles/filename.pdf
>
> > When I right-click, I can save the file, but when I left-click, it
> > tries to re-direct and i get an error saying
> > Error: UserfilesController could not be found.
>
> > So, basically, it's trying to route to the controller userfiles, which
> > doesn't exist because it's just a folder.
>
> > How do I tell it to ignore that and just give the option of
> > downloading the file?
>
> > Thanks.
>
> > Check out the new CakePHP Questions sitehttp://cakeqs.organd 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 cake-php@googlegroups.com
> > To unsubscribe from this group, send email to
> > cake-php+unsubscr...@googlegroups.comFor
> >  more options, visit this group at
> >http://groups.google.com/group/cake-php?hl=en

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 cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: Making a file downloadable

2010-10-25 Thread Tilen Majerle
make a folder in your webroot called "userfiles" and inside this folder you
should have files...then should work...
--
Tilen Majerle
http://majerle.eu



2010/10/25 WhyNotSmile 

> I know I'm missing something simple here, but I'm trying to make a
> file downloadable from my cakePHP site... I can show the link to the
> file, which (after uploading to the server via FCK) is domain.co.uk/
> userfiles/filename.pdf
>
> When I right-click, I can save the file, but when I left-click, it
> tries to re-direct and i get an error saying
> Error: UserfilesController could not be found.
>
> So, basically, it's trying to route to the controller userfiles, which
> doesn't exist because it's just a folder.
>
> How do I tell it to ignore that and just give the option of
> downloading the file?
>
> Thanks.
>
> 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 cake-php@googlegroups.com
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.comFor
>  more options, visit this group at
> http://groups.google.com/group/cake-php?hl=en
>

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 cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en