How to download (import) a file on the local disk like in the real world ?

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

How to download (import) a file on the local disk like in the real world ?

Wang Yan
Hi everbody :

If I have created links which contains the path of the files stored on a disk, for example,
               
                <a href="file1.pdf"><b>File 1</b></a>
                <a href="file2.doc"><b>File 2</b></a> (those files are in the same directory than my xhtml file !)

how to do in order to when an user click on a link, the browser offers the user the option to download or open this file on the local disk of user ? (like in a real situation without using Orbeon)

My probleme is PDF document is opened automatically by Orbeon but for document s with doc, xls extension, I've a message like below :

--------------------------------------------------------------

Orbeon PresentationServer - Page Not Found

We are sorry, but the resource you have requested is not available on this server.

----------------------------------------------------------------------------------------------------------------------------

could you please give me a hand ? 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 (import) a file on the local disk like in the real world ?

Hank Ratzesberger
If you want to configure a link to give the user the option to save
the file rather than view it inline, look at the documentation and
explanation in your other message about content-type

http://www.orbeon.com/ops/doc/processors-serializers-http

To fix the problem you are having below, you need simply
specify <files> in the page-flow.xml file, which is in the
/WEB-INF/resources directory of the unpacked WAR file.

No presumption is made about a url request by OF but you
can specify file patterns and the content-type to deliver
them by :

<files path-info="*.ppt" mime-type="application/vnd.ms-powerpoint"/>
<files path-info="*.doc" mime-type="application/vnd.ms-word"/>
<files path-info="*.xls" mime-type="application/vnd.ms-excel"/>

Then the browser configuration may decide how to handle.

Regards,
Hank

----- Original Message -----
From: Wang Yan
To: [hidden email]
Sent: Friday, January 19, 2007 2:44 AM
Subject: [ops-users] How to download (import) a file on the local disk like in the real world ?


Hi everbody :

If I have created links which contains the path of the files stored on a disk, for example,

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

how to do in order to when an user click on a link, the browser offers the user the option to download or open this file on the
local disk of user ? (like in a real situation without using Orbeon)

My probleme is PDF document is opened automatically by Orbeon but for document s with doc, xls extension, I've a message like below
:

--------------------------------------------------------------
Orbeon PresentationServer - Page Not Found
We are sorry, but the resource you have requested is not available on this server.
----------------------------------------------------------------------------------------------------------------------------

could you please give me a hand ? 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 




--
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