# Perspective onFileReceived - CSV

**URL:** <https://forum.inductiveautomation.com/t/perspective-onfilereceived-csv/39893>\
**Category:** Ignition\
**Created:** [October 21, 2020, 7:41pm UTC](https://forum.inductiveautomation.com/t/perspective-onfilereceived-csv/39893 "2020-10-21T19:41:57Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![DSI600](https://avatars.discourse-cdn.com/v4/letter/d/ad7895/32.png) [@DSI600](https://forum.inductiveautomation.com/u/DSI600)\
**Post date:** [October 21, 2020, 8:56pm UTC](https://forum.inductiveautomation.com/t/perspective-onfilereceived-csv/39893/3 "2020-10-21T20:56:17Z")

</div>

Awesome - Felt I was close just couldn’t find what I needed. Should have asked sooner 🙂

FYI for future readers below was the updated script to make it work from perspective

```auto
	from StringIO import StringIO
	import csv
	fileContents = event.file.getString("UTF-8")
	reader = csv.DictReader(StringIO(fileContents))
	for row in reader:
		system.perspective.print(row)

```

Thanks again!

---

_[View the full topic](https://forum.inductiveautomation.com/t/perspective-onfilereceived-csv/39893)._
