[Catalyst] Question on serving files

Wade.Stuart at fallon.com Wade.Stuart at fallon.com
Fri Feb 16 17:17:08 GMT 2007






<joeandjackie at boltblue.com> wrote on 02/16/2007 10:45:12 AM:

> Hi,
>
> I have a catalyst application which displays a list of files in a
directory.
> I would like to provide an anchor on the files to have them
downloadaccording
> to their
> mime-type.
> e.g. Clicking on a link to an excel file will stream the file with
mime-type
> application/excel just as though it came from an indexed folder.
>
> How do I do this through the Catalyst handler & response mechanism?
>
> Thanks,
>
> Joe
>

In addition to my last message,  please do note that the web server should
be used to transfer static files whenever possible -- if your app logic
does not need to generate or control the files permissions etc.




More information about the Catalyst mailing list