You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by "Hewko, Doug" <Do...@ccra-adrc.gc.ca> on 2001/10/03 20:18:14 UTC

How to have prompt for download?

How would you set up Cocoon2 to download a file instead of opening an
application for it? In my sitemap.xml, I have some word documents defined as
follows so I can put them all in one physical path.
   <map:match pattern="_documents/**.doc">
    <map:read src="xmldocs/{1}.doc" mime-type="application/msword"/>
   </map:match>   

What would I need to change if I want Windows to give the "open" or "save"
prompt instead of automatically opening Word?

---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


Re: How to have prompt for download?

Posted by Jörg Heinicke <jo...@gmx.de>.
I think, this is a problem of Windows not of Cocoon. Because I have a German
version of Windows I can't tell you the right way. I try to explain it:

In the explorer we have a menu named 'Extras', it should be named similarly
in English, there 'directory options', 'file types', search for '.doc',
modify the options of '.doc', there is an option meaning 'confirm opening
before download', this must be switched to yes.

Hope this helps,

Joerg

----- Original Message -----
From: "Hewko, Doug" <Do...@ccra-adrc.gc.ca>
To: <co...@xml.apache.org>
Sent: Wednesday, October 03, 2001 8:18 PM
Subject: How to have prompt for download?


> How would you set up Cocoon2 to download a file instead of opening an
> application for it? In my sitemap.xml, I have some word documents defined
as
> follows so I can put them all in one physical path.
>    <map:match pattern="_documents/**.doc">
>     <map:read src="xmldocs/{1}.doc" mime-type="application/msword"/>
>    </map:match>
>
> What would I need to change if I want Windows to give the "open" or "save"
> prompt instead of automatically opening Word?



---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


Re: How to have prompt for download?

Posted by Bertrand Delacretaz <bd...@codeconsult.dsvr.co.uk>.
On 03.10.2001 20:18:53, "Hewko, Doug" <Do...@ccra-adrc.gc.ca> wrote:

>How would you set up Cocoon2 to download a file instead of opening an
>application for it? 

I don't have the answer, but this has to do with the "Content-Disposition" HTTP header. You have to find a way to have Cocoon send a specific value (Content-Disposition: attachment if I remember right).

Bertrand Delacr�taz, www.codeconsult.ch

---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>