How to upload images to collection type?

How can i upload an array of images to a collection type? I have a collection type that has multiple fields on the strapi backend, and one of them is of multiple media type field. My code is trying to post an array of images that are uploaded in the front end, like so: ‘http://localhost:1337/ads’, {

images: [ImageFile, ImageFile, ImageFile, …]


However im getting an error than it is a bad request(400).

Maybe you call it wrong in the query.