Hi I have a form where I ask user to upload .doc files. This .doc files are stored as a file in ZODB.I have a page where I show the list of files user uploaded.When the user clicks on any of the file the browser asks the user to download the file.Now what I want is when the user clicks on the file ,a preview of the entire file must be seen in the browser and there would be download link present from where the user can download the file. Thanks __________________________________ Do you Yahoo!? Yahoo! Mail - Helps protect you from nasty viruses. http://promotions.yahoo.com/new_mail
john blair wrote:
the user to download the file.Now what I want is when the user clicks on the file ,a preview of the entire file must be seen in the browser and there would be download link present from where the user can download the file.
This sounds like either a client problem or a lot of work ;-) If it's a client problem, you need to get the users to tweak their browsers such that word docs are opened in the browser window rather than being downloaded. If you want a lot of work, then you need some serverside way of redering the word document to html so you can display it. I'd go for the former of the two ;-) Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk
This sounds like either a client problem or a lot of work ;-)
If it's a client problem, you need to get the users to tweak their browsers such that word docs are opened in the browser window rather than being downloaded.
If you want a lot of work, then you need some serverside way of redering the word document to html so you can display it.
I'd go for the former of the two ;-) Wouldn't be possible to modify the html header? Once I saw a similar post and they talk about this. There is a way of forcing the browser trying to open the file first, but unfortunately I don't have the thread any more.
Regards, Josef
On Wed, 02 Mar 2005 23:27:48 +0100, Josef Meile <jmeile@hotmail.com> wrote:
This sounds like either a client problem or a lot of work ;-)
If it's a client problem, you need to get the users to tweak their browsers such that word docs are opened in the browser window rather than being downloaded.
If you want a lot of work, then you need some serverside way of redering the word document to html so you can display it.
I'd go for the former of the two ;-) Wouldn't be possible to modify the html header? Once I saw a similar post and they talk about this. There is a way of forcing the browser trying to open the file first, but unfortunately I don't have the thread any more.
You mean the HTTP header ;) You need to send Content-Disposition: inline but it's still a decision made by the browser. -- Phillip Hutchings http://www.sitharus.com/ sitharus@gmail.com / sitharus@sitharus.com
Josef Meile wrote:
This sounds like either a client problem or a lot of work ;-)
If it's a client problem, you need to get the users to tweak their browsers such that word docs are opened in the browser window rather than being downloaded.
If you want a lot of work, then you need some serverside way of redering the word document to html so you can display it.
I'd go for the former of the two ;-)
Wouldn't be possible to modify the html header? Once I saw a similar post and they talk about this. There is a way of forcing the browser trying to open the file first, but unfortunately I don't have the thread any more.
Regards, Josef ________________
One idea is to find a utility that converts Word into PDF. I know that Word converts to Web pages. Maybe you write an external python script that can do this. Hammond wrote a book, Python programming on Win32 that covers stuff like interfacing COM and Word using Python. David David
Hi, If you have a plugin that can handle a specific mime-type document, then it is possible to do what you want. In fact, using internet explorer, and by setting mime-type of the document to "application/msword", I get the document displayed in the browser. I don't know how to do with firefox. Looking for a word plugin in firefox, maybe? Anyway, on unix platform, I don't think it is possible actually. Cheers Hoang-Vu --- Josef Meile <jmeile@hotmail.com> a écrit :
This sounds like either a client problem or a lot of work ;-)
If it's a client problem, you need to get the users to tweak their browsers such that word docs are opened in the browser window rather than being downloaded.
If you want a lot of work, then you need some serverside way of redering the word document to html so you can display it.
I'd go for the former of the two ;-) Wouldn't be possible to modify the html header? Once I saw a similar post and they talk about this. There is a way of forcing the browser trying to open the file first, but unfortunately I don't have the thread any more.
Regards, Josef _______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Découvrez le nouveau Yahoo! Mail : 250 Mo d'espace de stockage pour vos mails ! Créez votre Yahoo! Mail sur http://fr.mail.yahoo.com/
participants (6)
-
Chris Withers -
David Hassalevris -
Hoang-Vu PHUNG -
john blair -
Josef Meile -
Phillip Hutchings