There’s another possible way to achieve this:
There’s a multiple file upload feature into a gallery.
So you can create a regular gallery, upload a big batch of images to it, and then use code to iterate through all the images and insert them into a collection.
Like this:
export function gallery1_click(event, $w) {
let g = $w('#gallery1');
let insertObj; let count = 1;
g.items.forEach(function(i){
insertObj = { 'title':count++, 'src':i.src };
wixData.insert('Images', insertObj);
});
}
note: you can’t iterate the images of a pro gallery, so use a regular gallery for this