5 Dec
2003
5 Dec
'03
8:50 p.m.
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