Upload all remote files not just the first
Merge pull request #23 from Sauraus/24255

Iterate over the array of files to upload