[Zope] display uploaded file

2008-06-06 Thread 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. --

Re: [Zope] display uploaded file

2008-06-06 Thread Andreas Jung
--On 6. Juni 2008 08:22:57 +0100 sujitha mary <[EMAIL PROTECTED]> 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 co

Re: [Zope] display uploaded file

2008-06-06 Thread Peter Bengtsson
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 <[EMAIL PROTECTED]>: > hi all, > I need to display the contents of an uploaded file when i cli

Re: [Zope] display uploaded file

2008-06-08 Thread sujitha mary
After changing the content type also it's still the same.Is there any other option,my file is a text file Peter Bengtsson <[EMAIL PROTECTED]> 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