How to download a file in Orbeon ?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

How to download a file in Orbeon ?

Wang Yan
How can I do if I just want to download a file which is not a pdf or xml extention ?

I've tried <a href="file1.pdf"><b>File 1</b></a> and
                <a href="file2.doc"><b>File 2</b></a> ! (those files are in the same directory than my xhtml file !)

PDF document is opened automatically by Orbeon but Word document isn't.

Can you help me, thank you !

-----------------------------------------------------
Romandie Annonces : http://annonces.romandie.com
Petites annonces 100% gratuites entre romands
-----------------------------------------------------




--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: How to download a file in Orbeon ?

Martin Mohnhaupt
Hello,

In the page-flow, you can specify the files to serve directly. like

<config xmlns="http://www.orbeon.com/oxf/controller"
        xmlns:xu="http://www.xmldb.org/xupdate"
        xmlns:oxf="http://www.orbeon.com/oxf/processors">

    <!-- Files to serve directly -->
    <files path-info="*.gif"/>
    <files path-info="*.css"/>
    <files path-info="*.doc"/>
    <files path-info="*.pdf"/>
    .... etc...

Best regards,

MArtin

Wang Yan wrote:
How can I do if I just want to download a file which is not a pdf or xml extention ?

I've tried <a href="file1.pdf"><b>File 1</b></a> and
                <a href="file2.doc"><b>File 2</b></a> ! (those files are in the same directory than my xhtml file !)

PDF document is opened automatically by Orbeon but Word document isn't.

Can you help me, thank you !

-----------------------------------------------------
Romandie Annonces : http://annonces.romandie.com
Petites annonces 100% gratuites entre romands
-----------------------------------------------------



-- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: [hidden email] For general help: [hidden email] ObjectWeb mailing lists service home page: http://www.objectweb.org/wws

-- 
Martin Mohnhaupt
Nice Data Systems
Rue de Lyon 42 - CH 1203 GENEVE
Tél: +41 (0) 22 344 11 39
Mob: +41 (0) 78 636 00 75
Email: [hidden email]
Web: http://www.nicedata.com
Skype: martin.mohnhaupt
Action Carbone: http://www.actioncarbone.org


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws