diff options
| author | Fanny He <fah@odoo.com> | 2019-08-30 06:50:51 +0000 |
|---|---|---|
| committer | Nans Lefebvre <len@odoo.com> | 2019-08-30 14:29:09 +0000 |
| commit | df85ddc28f3fd3a23abf0d964c020409c524daa6 (patch) | |
| tree | 10ec3355bd5ed576c3341e0f616652307a92a537 /addons/web/static/lib/jquery.mjs.nestedSortable/jquery.mjs.nestedSortable.js | |
| parent | 52f6e38cea8ff9d16ab3432b3ccf032472e5a666 (diff) | |
[FIX] website_sale_digital: download file.extension when name has no extension
When selling a digital file on the web shop, if the file 'name'
has no extension (e.g. the pdf "Free Booklet"), the buyer
will download "Free Booklet" even when the mimetype is application/pdf).
This causes issues on Mac, as pdf files without extension are renamed
with .dms extensions.
We follow what is done in ir_http's binary_content for the extension management,
using the new one if provided in the name, then the original filename extension
if it exists, and we fallback on guessing it from the mimetype.
OPW 2057302
closes odoo/odoo#36294
Signed-off-by: Nans Lefebvre (len) <len@odoo.com>
Diffstat (limited to 'addons/web/static/lib/jquery.mjs.nestedSortable/jquery.mjs.nestedSortable.js')
0 files changed, 0 insertions, 0 deletions
