# Perspective download not working with Firefox

**URL:** <https://forum.inductiveautomation.com/t/perspective-download-not-working-with-firefox/99466>\
**Category:** Ignition\
**Tags:** ignition81, perspective\
**Created:** [December 5, 2024, 9:54am UTC](https://forum.inductiveautomation.com/t/perspective-download-not-working-with-firefox/99466 "2024-12-05T09:54:19Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![flavien](https://avatars.discourse-cdn.com/v4/letter/f/f475e1/32.png) [@flavien](https://forum.inductiveautomation.com/u/flavien)\
**Post date:** [December 5, 2024, 9:54am UTC](https://forum.inductiveautomation.com/t/perspective-download-not-working-with-firefox/99466/1 "2024-12-05T09:54:19Z")

</div>

Hi,

I made a script with system.dataset.toExcel() and system.perspective.download(). On Android mobile device it works on Chrome but not on Firefox. Do you have a solution ?

---

<div class="post-metadata">

**Author:** ![Alejandro\_Alaco](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/alejandro_alaco/32/59849_2.png) [@Alejandro\_Alaco](https://forum.inductiveautomation.com/u/Alejandro_Alaco)\
**Post date:** [December 5, 2024, 10:16am UTC](https://forum.inductiveautomation.com/t/perspective-download-not-working-with-firefox/99466/2 "2024-12-05T10:16:18Z")

</div>

Hello!

I´m using : system.dataset.toCSV adn system.perspective.download(file\_name, csv)

```python
def runAction(self, event):
		
  	component = self.parent.getChild("TabContainer").getChild("TablaOT")

	csv = system.dataset.toCSV(component.props.data)

    
	current_time = system.date.now()

	formatted_date = system.date.format(current_time, "yyyyMMdd")

    
	file_name = "TablaOT_" + formatted_date + ".csv"

	system.perspective.download(file_name, csv)

```

And it works in Firefox  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/d/8/d82d1c11d8b9d39f24512918007550e9797334ad.png)

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/e/5/e58dd9d8822c848adbb5c6c0741c1355cfbf210f.png)

---

<div class="post-metadata">

**Author:** ![flavien](https://avatars.discourse-cdn.com/v4/letter/f/f475e1/32.png) [@flavien](https://forum.inductiveautomation.com/u/flavien)\
**Post date:** [December 5, 2024, 11:52am UTC](https://forum.inductiveautomation.com/t/perspective-download-not-working-with-firefox/99466/3 "2024-12-05T11:52:09Z")

</div>

Thanks but I don't want a CSV.  
Furthermore in my CSV headers string encode is not correct.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/7/0/7059d4bc7a5125a82875578688e1a0c7024aa08c.png)

---

<div class="post-metadata">

**Author:** ![victordcq](https://avatars.discourse-cdn.com/v4/letter/v/f6c823/32.png) [@victordcq](https://forum.inductiveautomation.com/u/victordcq)\
**Post date:** [December 5, 2024, 12:06pm UTC](https://forum.inductiveautomation.com/t/perspective-download-not-working-with-firefox/99466/4 "2024-12-05T12:06:27Z")

</div>

Seems like a firefox security setting.  
What firefox browser version is it?

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [December 5, 2024, 4:57pm UTC](https://forum.inductiveautomation.com/t/perspective-download-not-working-with-firefox/99466/5 "2024-12-05T16:57:10Z")

</div>

Any errors in the browser console when you attempt the download?

---

<div class="post-metadata">

**Author:** ![Chris\_Bingham](https://avatars.discourse-cdn.com/v4/letter/c/e5b9ba/32.png) [@Chris\_Bingham](https://forum.inductiveautomation.com/u/Chris_Bingham)\
**Post date:** [December 5, 2024, 8:59pm UTC](https://forum.inductiveautomation.com/t/perspective-download-not-working-with-firefox/99466/6 "2024-12-05T20:59:59Z")

</div>

The [system.dataset.toCSV()](https://www.docs.inductiveautomation.com/docs/8.1/appendix/scripting-functions/system-dataset/system-dataset-toCSV) function has an optional `localized` parameter which might help with encoding.  
What version of Ignition is your gateway running?
