# Click Button And File Sent, i.e. Browser Downloading?

**URL:** https://discourse.nodered.org/t/click-button-and-file-sent-i-e-browser-downloading/85306
**Category:** General
**Created:** [8 February 2024 00:15 UTC](https://discourse.nodered.org/t/click-button-and-file-sent-i-e-browser-downloading/85306 "2024-02-08T00:15:36Z")
**Posts on this page:** 1
**Showing post:** 7

<div class="post-metadata">

### Author: ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)
#### Post date: [8 February 2024 21:27 UTC](https://discourse.nodered.org/t/click-button-and-file-sent-i-e-browser-downloading/85306/7 "2024-02-08T21:27:17Z")

</div>

> [@Nodi.Rubrum](#):
>
> But I see one more thing tripping me up. The file created will vary by file name

You can set headers dynamically by setting `msg.headers`. In the flow in [this thread](https://discourse.nodered.org/t/downloading-csv-file-of-data-from-mysql-between-2-dates/35952/5), there is a function "Set Headers" - see that for an example.

Sorry I don't have the time to read the rest of your post, hopefully someone else will chime in.

---

_[View the full topic](https://discourse.nodered.org/t/click-button-and-file-sent-i-e-browser-downloading/85306)._
