Best way for adding image upload within a repeated collection?

It’s exactly the same as this post, but with a file uploader instead of an input element.
You need to keep track of the uploaded value with a workflow triggered on change, same as the example with the input element.
The idea is that when you upload the data you don’t pick the values from the elements but you have your variable with all the data.