itera sobre o JavaScript da lista de fileiras

Array.from(field.photo.files).forEach(file => { ... });
Velvet Thunder