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

Joe Bordes joe at tsolucio.com
Mon Jan 18 10:44:37 GMT 2016


Could it be that you have some extra characters being sent to the 
browser before the actual output? That is the usual case for this behaviour.

Joe
TSolucio


El 18/01/16 a las 11:33, Alan Lord escribió:
> 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
>
> _______________________________________________
> http://www.vtiger.com/



More information about the vtigercrm-developers mailing list