Uploading multiple file error

Hi, I’m setting up a page to allow users to upload multiple image files.

I followed instructions on how to link the upload button to a MEDIA GALLERY field in a Collection…

…but when I try uploading from my web page, the first record is what I get:

The pictures that appear in the records below are the ones generated automatically when I add the repeater object to the page.

What am I doing wrong?