Here are the inputs I want to loop through Main photo: <input type="file" name="image[]" /> Side photo 1: &…