fix for file upload issue when uploading multiple images from a repeated field