[Vtigercrm-developers] vtiger 5.4.0: Export of xls/xlsx broken after update of server

Alan Lord alanslists at gmail.com
Mon Jan 18 10:33:46 GMT 2016


I did some work on a customer's server this weekend and something seems 
to have broken Excel exports.

Can someone point me in the right direction please? This is vtiger 
5.4.0. The server is running Ubuntu 12.04 and the php version is

PHP 5.3.10-1ubuntu3.21 with Suhosin-Patch (cli) (built: Oct 28 2015 
01:43:56)
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2012 Zend Technologies

It looks like it's a mime-type thing.

Files look OK but according to "file" on my desktop, xls files have a 
mime type of:

alanlord at hrun:~$ file --mime-type --mime-encoding ~/Desktop/Reports.xls 
/home/alanlord/Desktop/Reports.xls: application/octet-stream; charset=binary

and xlsx:

alanlord at hrun:~$ file --mime-type --mime-encoding 
~/Desktop/CONT46616-2336367967017.xlsx
/home/alanlord/Desktop/CONT46616-2336367967017.xlsx: 
application/octet-stream; charset=binary

These are wrong. They should be

alanlord at hrun:~$ file --mime-type --mime-encoding ~/Downloads/Enquiries\ 
by\ month.xls
/home/alanlord/Downloads/Enquiries by month.xls: 
application/vnd.ms-office; charset=binary

file --mime-type --mime-encoding 
~/Downloads/ACC431_10443720002103325_2015-02-18.xlsx
/home/alanlord/Downloads/ACC431_10443720002103325_2015-02-18.xlsx: 
application/zip; charset=binary



More information about the vtigercrm-developers mailing list