Iterate over the array of files to upload