Roberto,
Could you, kindly, post what exactly you did to "upgrade libmagic1 file". I have read some posts about changing /etc/magic file with the content of msooxml. I tried to upgrade it by two ways:
# Correct the mimetype with the registered ones:
#
http://technet.microsoft.com/en-us/library/cc179224.aspx>>>>&26 string word/ Microsoft Word 2007+
!:mime application/vnd.openxmlformats-officedocument.wordprocessingml.document
>>>>&26 string ppt/ Microsoft PowerPoint 2007+
!:mime application/vnd.openxmlformats-officedocument.presentationml.presentation
>>>>&26 string xl/ Microsoft Excel 2007+
!:mime application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
>>>>&26 default x Microsoft OOXML
!:strength +10
and this way:
# Correct the mimetype with the registered ones:
#
http://technet.microsoft.com/en-us/library/cc179224.aspx>>>>&26 string word/ Microsoft Word 2007+ !:mime application/vnd.openxmlformats-officedocument.wordprocessingml.document
>>>>&26 string ppt/ Microsoft PowerPoint 2007+ !:mime application/vnd.openxmlformats-officedocument.presentationml.presentation
>>>>&26 string xl/ Microsoft Excel 2007+ !:mime application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
>>>>&26 default x Microsoft OOXML !:strength +10
Here is the output of the file command:
$ file testfile.docx
/etc/magic, 31: Warning: description `Microsoft Word 2007+ !:mime application/vnd.openxmlformats-offi' truncated
/etc/magic, 32: Warning: description `Microsoft PowerPoint 2007+ !:mime application/vnd.openxmlformat' truncated
/etc/magic, 33: Warning: description `Microsoft Excel 2007+ !:mime application/vnd.openxmlformats-off' truncated
However, none of that worked. The docx files are still uploaded into Mayan as zip files.
I am running Ubuntu 12.04 LTS.
I hope you can help me with this issue.