Bug Report - CSV file download Content-Type header wrong

Questions and bug reports for current release of CKForms

Bug Report - CSV file download Content-Type header wrong

Postby andrej.pavlovic » Tue May 18, 2010 1:37 am

Version 1.3.4

When exporting data into CSV the Content-Type header is set to "text/html". This causes some browsers to download the file as .htm instead of as .csv.

Change the following line in the administrator\components\com_ckforms\controllers\ckdata.php file:
header( "Content-type: application/vnd.ms-excel");
to:
$document->setMimeEncoding('application/vnd.ms-excel');
www.pokret.org - Where talent meets technology.
andrej.pavlovic
 
Posts: 2
Joined: Tue May 18, 2010 1:34 am
Top

Return to CKForms 1.3.x Support forum

Who is online

Users browsing this forum: Yahoo [Bot] and 1 guest

cron