display uploaded file
hi all, I need to display the contents of an uploaded file when i click a link.But when i click the link instead of displaying the contents i'm getting a message to save this BIN file.wht changes should i make to display it in my plone interface?Plz help. --------------------------------- Bollywood, fun, friendship, sports and more. You name it, we have it.
--On 6. Juni 2008 08:22:57 +0100 sujitha mary <suji102000@yahoo.co.in> wrote:
hi all, I need to display the contents of an uploaded file when i click a link.
Unless the *file* is an image then there is nothing a browser can do. Browsers can basically show only html and images and some other content-types using plugins...so the download link is the best a browser can do!
But when i click the link instead of displaying the contents i'm getting a message to save this BIN file.wht changes should i make to display it in my plone interface?Plz help.
Plone has some add-ons for showing _previews_ of uploaded binary content for some mimetypes like pdf. Search on plone.org -> products for terms like "attachment" or "preview". -aj
Change the uploaded file's content_type to text/plain and the browser will try to display it. This is something you can do to images too but you'll get a very looong page of "junk". 2008/6/6 sujitha mary <suji102000@yahoo.co.in>:
hi all, I need to display the contents of an uploaded file when i click a link.But when i click the link instead of displaying the contents i'm getting a message to save this BIN file.wht changes should i make to display it in my plone interface?Plz help.
________________________________ Bollywood, fun, friendship, sports and more. You name it, we have it. _______________________________________________ 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 )
-- Peter Bengtsson, work www.fry-it.com home www.peterbe.com hobby www.issuetrackerproduct.com
After changing the content type also it's still the same.Is there any other option,my file is a text file Peter Bengtsson <peter@fry-it.com> wrote: Change the uploaded file's content_type to text/plain and the browser will try to display it. This is something you can do to images too but you'll get a very looong page of "junk". 2008/6/6 sujitha mary :
hi all, I need to display the contents of an uploaded file when i click a link.But when i click the link instead of displaying the contents i'm getting a message to save this BIN file.wht changes should i make to display it in my plone interface?Plz help.
________________________________ Bollywood, fun, friendship, sports and more. You name it, we have it. _______________________________________________ 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 )
-- Peter Bengtsson, work www.fry-it.com home www.peterbe.com hobby www.issuetrackerproduct.com --------------------------------- Meet people who discuss and share your passions. Join them now.
participants (3)
-
Andreas Jung -
Peter Bengtsson -
sujitha mary