Commit 1ca31ea3 authored by Fabien Morin's avatar Fabien Morin

set the content_type using the type attribute of the headers

reviewed by nicolas


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@35620 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent ab8f9613
......@@ -176,6 +176,7 @@ class ContributionTool(BaseTool):
headers = url_file.headers
if hasattr(headers, 'type'):
mime_type = headers.type
kw['content_type'] = mime_type
kw['file'] = file
# If the portal_type was provided, we can go faster
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment