Re: How to manually set the Content-Type
"Wolfgang Huber" <[email protected]> Mon, 21 Mar 2011 09:44:12 +0100
| Newsgroups | gmane.comp.cms.zms.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi Sebastian and others,
> without any further details how you'd like to set the content type
(i.e. in
> a python script, dtml method etc.) I can only provide this:
>
> <dtml-call "RESPONSE.setHeader('Content-Type','text/xml;
charset=utf-8')">
>
> With this we set the content type in dtml-methods that return for
example a
> CSS file.
> I know this won't help a lot with uploading files.
>
I want to set the content-type for a download-file, there must be some
option to set it for the objetc itself.
regards,
Wolfgang Huber
Informationsmanagement, Anwendersysteme
Web Engineer
Johannes Kepler Universität
Altenbergerstraße 69
4040 Linz, Österreich
Tel: +43 732 2468 8082
http://www.im.jku.at