Attach files from a data table


I created a webform that contains a datatable field in which the user has to insert some data and to each new line, upload a file. As the user fills all data, the department should receive an email containing the information from the webform plus the information from the datatable, including all the files.
I couldn't find an efficient solution for it. The best idea I came up with is to extract file by file in each line with "table look up in a column" and then attach all fields to the email. But I had to limit the number of lines of the datatable.
Could anyone think of a better sollution?