cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lionel Crine <cr...@4dconcept.fr>
Subject RE: [Help] Downloading file into local Disk
Date Fri, 12 Sep 2003 10:25:19 GMT
OK I tried different thing and it's always the same thing.

IE display the file if I specfy th .xml extension.
Mozilla works fine.


I saw that there is an action which modify the headerbut nothing it doesn't 
seeme to work.

I'll post an help thread.






At 20:36 11/09/2003 -0400, you wrote:
>changing the mime type of the download helps, but w3c says that it's up to
>the user-agent whether to display the document or save it.  in other words,
>you can't control this behavior 100%.
>
>for example, if you send an unknown mime type to IE, then a save dialog will
>appear the first time.  however, if the user hits the URL again, the file is
>in IE's cache, and IE recognizes the extension on the file, then IE will
>display it and not give a save dialog.
>
>
> > -----Original Message-----
> > From: Nicolas Toper [mailto:ntoper@jouve.fr]
> > Sent: Thursday, September 11, 2003 12:26 PM
> > To: users@cocoon.apache.org
> > Subject: RE: [Help] Downloading file into local Disk
> >
> >
> > you need to change the Mime type to application/x-download or for NS
> > application/octet-stream (you need to check about the exact
> > Mime type).
> >
> > I don't know how to change the header with Cocoon but I guess
> > someone can
> > help :=)
> >
> > > -----Message d'origine-----
> > > De : Lionel Crine [mailto:crine@4dconcept.fr]
> > > Envoyé : jeudi 11 septembre 2003 18:05
> > > À : users@cocoon.apache.org
> > > Objet : [Help] Downloading file into local Disk
> > >
> > >
> > > Hi,
> > >
> > > I'd like my browser web not to display the xml document but
> > to open a
> > > download popup.
> > >
> > > I hae created a serializer with a mime-type set to
> > > binary/octet-stream, but
> > > when I try :
> > > <map:match pattern="save.xml">
> > >    <map:generate type="file" src="toto.xml"/>
> > >    <map:serializer type="save"/>
> > > </map:match>
> > >
> > >
> > > the browser display the document.
> > >
> > > Else if I try to write <map:match pattern="save.t">
> > instead, the download
> > > popup comes up!!!
> > >
> > > Any idea ?
> > >
> > > Thanks
> > > Lionel
> > >
> > >
> > >
> > > Lionel CRINE
> > > Société : 4DConcept
> > > 22 rue Etienne de Jouy 78353 JOUY EN JOSAS
> > > Tel : 01.34.58.70.70 Fax : 01.39.58.70.70
> > >
> > >
> > >
> > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> > > For additional commands, e-mail: users-help@cocoon.apache.org
> > >
> > >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> > For additional commands, e-mail: users-help@cocoon.apache.org
> >
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>For additional commands, e-mail: users-help@cocoon.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message