# Use FileUpload to get CSV and update database

**URL:** <https://forum.inductiveautomation.com/t/use-fileupload-to-get-csv-and-update-database/61582>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [July 6, 2022, 6:12pm UTC](https://forum.inductiveautomation.com/t/use-fileupload-to-get-csv-and-update-database/61582 "2022-07-06T18:12:40Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [July 6, 2022, 6:16pm UTC](https://forum.inductiveautomation.com/t/use-fileupload-to-get-csv-and-update-database/61582/2 "2022-07-06T18:16:30Z")

</div>

Start with this topic:

> [@Perspective onFileReceived - CSV](https://forum.inductiveautomation.com/t/perspective-onfilereceived-csv/39893):
>
> Having issues trying to figure out how to parse a CSV and get it into a database from perspective using the file upload component. I have looked around most of the afternoon on the forum and can’t quite find any examples that are not people trying to parse images. sdata = event.file.getBytes() byteArray = bytearray(sdata).decode("UTF-8") system.perspective.print(byteArray) I have the above and it will print out the data in the CSV file in a string list I am assuming with the decode. What I …

---

_[View the full topic](https://forum.inductiveautomation.com/t/use-fileupload-to-get-csv-and-update-database/61582)._
