Quantcast
Channel: Joomla! Forum - community, help and support
Viewing all articles
Browse latest Browse all 2109

Joomla! 4.x Coding • Re: Download file header issue

$
0
0
From https://docs.joomla.org/J4.x:Joomla_4_T ... xport_Data:

Code:

$app->setHeader('Content-Type', 'text/csv; charset=utf-8', true);$app->setHeader('Content-disposition', 'attachment; filename="' . $filename . '-' . $date . '.csv"', true);$app->setHeader('Cache-Control', 'no-cache', true);$app->sendHeaders();
Hope this helps.

Statistics: Posted by ceford — Sat Mar 02, 2024 5:57 am



Viewing all articles
Browse latest Browse all 2109

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>