How to store uploaded file into datatable so that I can edit the data?

Hello!

How to write a method that will put the uploaded csv/excel file to a datatable so that I can filter and edit the data.

Thanks!