Take data from attachment and populate fields?

Hi there!

I was wondering if it possible to have a form that allows the user to attach a file (csv or xlsx) then using automation, take that attachment and populate the matching columns - as well as do any update.

Basically would be the CSV Importer but instead of dropping a file, it would consider the values from the attachment.

There is Spreadsheet importer: https://airtable.com/developers/scripting/examples/spreadsheetimporter but not sure how to make it work.

Thanks!