[TYPO3-seminars] CSV download doesn't seem to work properly
Rolf Thiele
gegenalles at web.de
Wed Mar 3 15:27:29 CET 2010
Hi Oliver,
a colleague of mine wrote a patch for pi2/class.tx_seminars_pi2.php
private function setPageTypeAndDisposition($csvFileName) {
/*
// Patched by Joern Dost at dt-internet.de 03/03/2010
// Content-disposition was ignored by browsers, as it
was the 2nd header
// in one line. Fixed: We now send two sep. header-
lines to the browser.
tx_oelib_headerProxyFactory::getInstance()-
>getHeaderProxy()->addHeader(
'Content-type: text/csv; header=present;
charset=' .
$this->configGetter-
>getConfValueString('charsetForCsv') .
'Content-disposition: attachment;
filename=' . $csvFileName
);
*/
tx_oelib_headerProxyFactory::getInstance()-
>getHeaderProxy()->addHeader(
'Content-type: text/csv; header=present;
charset=' .
$this->configGetter-
>getConfValueString('charsetForCsv')
);
tx_oelib_headerProxyFactory::getInstance()-
>getHeaderProxy()->addHeader(
'Content-disposition: attachment;
filename=' . $csvFileName
);
}
Cheers,
Rolf
More information about the TYPO3-project-seminars
mailing list