# Web Dev force file download instead of browser render

**URL:** <https://forum.inductiveautomation.com/t/web-dev-force-file-download-instead-of-browser-render/69215>\
**Category:** Ignition\
**Created:** [January 31, 2023, 4:01pm UTC](https://forum.inductiveautomation.com/t/web-dev-force-file-download-instead-of-browser-render/69215 "2023-01-31T16:01:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![MMaynard](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mmaynard/32/3366_2.png) [@MMaynard](https://forum.inductiveautomation.com/u/MMaynard)\
**Post date:** [January 31, 2023, 4:01pm UTC](https://forum.inductiveautomation.com/t/web-dev-force-file-download-instead-of-browser-render/69215/1 "2023-01-31T16:01:55Z")

</div>

Using Web Dev to return queryTagHistory results, is there any way to force the client browser to download the CSV or JSON formatted results instead of rendering them in the browser?  
We have some EXTREMELY large datasets every now and then that need to be a download vs render in browser.

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [January 31, 2023, 4:04pm UTC](https://forum.inductiveautomation.com/t/web-dev-force-file-download-instead-of-browser-render/69215/2 "2023-01-31T16:04:43Z")

</div>

Set the [Content Disposition](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Disposition) header. Note that, like anything else with browsers, this is a **suggestion** to the browser, not a command. But is usually honored unless the user has deliberately adjusted their preferences for the given filetype.

---

<div class="post-metadata">

**Author:** ![MMaynard](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mmaynard/32/3366_2.png) [@MMaynard](https://forum.inductiveautomation.com/u/MMaynard)\
**Post date:** [January 31, 2023, 4:44pm UTC](https://forum.inductiveautomation.com/t/web-dev-force-file-download-instead-of-browser-render/69215/3 "2023-01-31T16:44:32Z")

</div>

Perfect! Thanks Phil!
