Accidentally removed the return.
Ensure files is an array.
More content in the example.