I'm working on a NestJS application and I'm facing a challenge with handling an array of objects in a form-data request. Each object in the array represents an image with associated metadata like "id", "image" (which can be a File object or an image URL), "title", and "description".
I need guidance on how to handle this request effectively while allowing for the upload of new image files and updating the existing ones with URLs if they are provided.
[{
"id": "0",
"image": File Object,
"title": "some title",
"description": "some description"
},
{
"id": "1",
"image": File Object",
"title": "some title 1",
"description": "some description 1"
}]
#1025199348096700476