# Datei zum Download anbieten / PlugIn

**URL:** <https://forum.shopware.com/t/datei-zum-download-anbieten-plugin/4954>\
**Category:** Shopware 3.5\
**Tags:** programming\
**Created:** [31. Oktober 2011 um 16:52 UTC](https://forum.shopware.com/t/datei-zum-download-anbieten-plugin/4954 "2011-10-31T16:52:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tamario](https://avatars.discourse-cdn.com/v4/letter/t/e68b1a/32.png) [@tamario](https://forum.shopware.com/u/tamario)\
**Post date:** [31. Oktober 2011 um 16:52 UTC](https://forum.shopware.com/t/datei-zum-download-anbieten-plugin/4954/1 "2011-10-31T16:52:44Z")

</div>

Hallo zusammen, ich habe eine Action in einem PlugIn, die eine CSV-Datei generiert. Die CSV-Datei soll dann direkt zum Download angeboten werden. Leider passiert nichts, wenn ich Header sende. Habt Ihr eine Idee, wie ich das lösen könnte? Hier mal ein Auszug aus dem Code: ` header('Content-Type: text/x-csv'); header('Expires: " . gmdate("D, d M Y H:i:s") . " GMT'); header('Content-Disposition: attachment; filename="'.date('Y-m-d').'-Intraship-Export.csv"'); header('Pragma: no-cache'); print $MeineCSV; `

---

<div class="post-metadata">

**Author:** ![tamario](https://avatars.discourse-cdn.com/v4/letter/t/e68b1a/32.png) [@tamario](https://forum.shopware.com/u/tamario)\
**Post date:** [31. Oktober 2011 um 17:08 UTC](https://forum.shopware.com/t/datei-zum-download-anbieten-plugin/4954/2 "2011-10-31T17:08:31Z")

</div>

Hab es selber herausgefunden… Shopware()-\>Front()-\>Response()-\>setHeader(‘Content-Type’, ‘text/x-csv’, true); [Wiki-Artikel](http://wiki.shopware.de/Technisches-Preview-Shopware-3.5.0%5C_detail%5C_497%5C_460.html)
