[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date
][Interchange by thread
]
[ic] Need a Page to Download a Perl generated file
> I have a perl function that generates a report into a file
> from my catalog....
> I need a way to allow the user to click a button
> to download the file to their PC.
>
> I have seen some code in the UI/Admin module
> that seems to do this, but it seems overly complex
> for what I am trying to do.
>
> Can anyone point me in a direction? Thanks.
>
Try putting the following on your page:
[tag op=header]Content-Type: application/octet-stream[/tag]
You can use a different MIME type if you like, depending upon the
type of data you are trying to create.
--
_/ _/ _/_/_/_/ _/ _/ _/_/_/ _/ _/
_/_/_/ _/_/ _/ _/ _/ _/_/ _/ K e v i n W a l s h
_/ _/ _/ _/ _/ _/ _/ _/_/ kevin@cursor.biz
_/ _/ _/_/_/_/ _/ _/_/_/ _/ _/