Project

General

Profile

Bug #2049

DocX

Added by Jonas Fangstrom almost 9 years ago. Updated over 8 years ago.

Status:
Bug resolved
Priority:
High
Category:
-
Target version:
Start date:
22/09/2010
Due date:
% Done:

100%

Estimated time:
Complexity:
Normal
SCRUM pts - complexity:
?

Description

When uploading a file of .docx type it will become a .zip when downloading.
Ordinary .doc is no problem at all.

You only get this effect when uploading to the Dropbox, not when uploading to Documents.
In Documents it works fine.

I supose this bug is in ALL Chamilo platforms?

All response are welcome.

History

#1

Updated by Jonas Fangstrom almost 9 years ago

Solved.

In file:
main\inc\lib\document.lib.php

Add lines (if missing)*:*
"docm" => "application/vnd.ms-word.document.macroEnabled.12",
"docx" => "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
"dotx" => "application/vnd.openxmlformats-officedocument.wordprocessingml.template",
"potm" => "application/vnd.ms-powerpoint.template.macroEnabled.12",
"potx" => "application/vnd.openxmlformats-officedocument.presentationml.template",
"pps" => "application/vnd.ms-powerpoint",
"ppam" => "application/vnd.ms-powerpoint.addin.macroEnabled.12",
"ppsm" => "application/vnd.ms-powerpoint.slideshow.macroEnabled.12",
"ppsx" => "application/vnd.openxmlformats-officedocument.presentationml.slideshow",
"pptm" => "application/vnd.ms-powerpoint.presentation.macroEnabled.12",
"pptx" => "application/vnd.openxmlformats-officedocument.presentationml.presentation",
"lam" => "application/vnd.ms-excel.addin.macroEnabled.12",
"xlsb" => "application/vnd.ms-excel.sheet.binary.macroEnabled.12",
"xlsm" => "application/vnd.ms-excel.sheet.macroEnabled.12",
"xlsx" => "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
"xltm" => "application/vnd.ms-excel.template.macroEnabled.12",
"xltx" => "application/vnd.openxmlformats-officedocument.spreadsheetml.template",

#2

Updated by Yannick Warnier over 8 years ago

  • Status changed from New to Bug resolved
  • Assignee set to Yannick Warnier
  • % Done changed from 0 to 100

Thanks, great suggestion!
Applied in http://code.google.com/p/chamilo/source/detail?r=2bf50a62e076b2a99ccf5e7c3ac10260bd776737&repo=classic
We had previously applied a partial patch coming from our ancestor software, but this one is much more detailed. Great job.

Also available in: Atom PDF