Open PhilippeAccorsi opened 4 years ago
File type visible in Tracim:
Type : application/vnd.ms-powerpoint.presentation.macroEnabled.12
Issue is related to bad non-lowercase mimetype support in python standard lib : https://bugs.python.org/issue39441
According to the issue of lowercase these type of file should not work correctly on preview_generator:
"application/vnd.ms-excel.sheet.binary.macroEnabled.12": "xlsb",
"application/vnd.ms-excel.sheet.macroEnabled.12": "xlsm",
"application/vnd.ms-excel.template.macroEnabled.12": "xltm",
"application/vnd.ms-powerpoint.presentation.macroEnabled.12": "pptm",
"application/vnd.ms-powerpoint.slide.macroEnabled.12": "sldm",
"application/vnd.ms-powerpoint.slideshow.macroEnabled.12": "ppsm",
"application/vnd.ms-powerpoint.template.macroEnabled.12": "potm",
"application/vnd.ms-word.document.macroEnabled.12": "docm",
"application/vnd.ms-word.template.macroEnabled.12": "dotm",
On my system, theses mimetypes contains uppercase and could not be correctly supported by preview_generator with current code:
application/batch-SMTP
application/vnd.3M.Post-it-Notes
application/vnd.hp-HPGL
application/vnd.hp-PCL
application/vnd.hp-PCLXL
application/vnd.ibm.MiniPay
application/vnd.ms-excel.addin.macroEnabled.12 xlam
application/vnd.ms-excel.sheet.binary.macroEnabled.12 xlsb
application/vnd.ms-excel.sheet.macroEnabled.12 xlsm
application/vnd.ms-excel.template.macroEnabled.12 xltm
application/vnd.ms-powerpoint.addin.macroEnabled.12 ppam
application/vnd.ms-powerpoint.presentation.macroEnabled.12 pptm
application/vnd.ms-powerpoint.slide.macroEnabled.12 sldm
application/vnd.ms-powerpoint.slideshow.macroEnabled.12 ppsm
application/vnd.ms-powerpoint.template.macroEnabled.12 potm
application/vnd.ms-word.document.macroEnabled.12 docm
application/vnd.ms-word.template.macroEnabled.12 dotm
application/vnd.novadigm.EDM
application/vnd.novadigm.EDX
application/vnd.novadigm.EXT
application/x-font-pcf pcf pcf.Z
application/x-mpegURL m3u8
chemical/x-molconn-Z b
text/vnd.DMClientScript
text/vnd.IPTC.NewsML
text/vnd.IPTC.NITF
video/MP2T ts
at present
I try to generate a preview of pptm file but no preview is created. I can see this kind of error in Tracim:
Expected
More information:
I can't add my file on this issue but if you give me an email, I can send you directly the file if necessary.