summaryrefslogtreecommitdiff
path: root/doc/reference/javascript_reference.rst
diff options
context:
space:
mode:
authorNicolas Galler <ngl@odoo.com>2020-10-12 10:22:06 +0000
committerNicolas Galler <ngl@odoo.com>2020-10-16 07:49:06 +0000
commit2820ec7d5763a5856274709a4d2024267313106b (patch)
tree25a04102d625091b180255f39c2dfc44342b04d0 /doc/reference/javascript_reference.rst
parent24ab21811ef71f75a24fdeb441c299435789e8fb (diff)
[FIX] base: preserve mime type for uploaded Word documents
Behavior before the fix: - When uploading an office 2007 attachment (.xlsx / .docx) as a regular (non admin) user, the preview shows it as text, and the download option by default saves it as a text document (in certain browsers, at least). This stems from an over-aggressive check on mime type (anything that contains 'xml' **anywhere** in the mime type is taken to be XML, but the mime type for an Office document is `application/vnd.openxmlformats-officedocument.wordprocessingml.document` so it falls in the XML case. Behavior after the fix: - The mime type is preserved - Mime type for XML-like documents (including HTML and SVG) continues to be validated opw-2352712 closes odoo/odoo#60145 X-original-commit: 6ec5e44e4a2109c62827fbcd93521d64881b3116 Related: odoo/enterprise#14154 Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com> Signed-off-by: Nicolas Galler <nicocrm@users.noreply.github.com>
Diffstat (limited to 'doc/reference/javascript_reference.rst')
0 files changed, 0 insertions, 0 deletions