Everything looks fine, expect:
It should be just files, without .images
images.forEach(({ file }) => bodyFormData.append(`files`, file, file.name))
I don’t know if you are uploading from backend or frontend, or if you set the headers to the axios instance, but if you use axios on the backend, then I want to mention that you need to use getHeaders() in Node.js because Axios doesn’t automatically set the multipart form boundary in Node.
So for the backend, the correct axios request will be:
return await client.post('/upload', bodyFormData,{
headers: {
...data.getHeaders(),
},
})