[Zope] Problems with mime types

Dieter Maurer dieter at handshake.de
Fri Dec 5 15:50:39 EST 2003


Juho Vuori wrote at 2003-12-5 10:45 +0200:
> ...
>  <form method="post" action="<dtml-var URL0>" 
>enctype="multipart/form-data">
>...
>  <input type="file" name="attached_file"><br><br>
>...
>  </form>
>
>Values from the form are then passed to a python script that gets the 
>mime type from file headers(?):
>
>...
>  filetype = match('Content-Type: ([\w/]+)', attached_file.headers)
>...
>
>Who sets these headers

Your browser.

> and how to change its behaviour?

Browsers can usually be configured with respect to the
correspondence between mime types and filename extensions.

-- 
Dieter



More information about the Zope mailing list