Hey @ptimson. The secret to finding out what the upload plugin expects for fileInfo entries is to look in this file:
[YourProject]/node_modules/@strapi/plugin-upload/server/services/upload.js
If you look at the upload method, you will see that the fileInfo is being extracted from the data object being passed. Also, look at the formatFileInfo method. I believe if you create a fileInfo array of objects with one entry for every file, and add the array to your ‘data’ object before stringifying it, the upload method should recognize it. Maybe something like this:
const fileInfo = [
{
"caption" : "file1 Caption",
"alternativeText" : "file1 alt text"
},
{
"caption" : "file2 Caption",
"alternativeText" : "file2 alt text"
},
];
const data = {};
data['fileInfo'] = fileInfo;
formData.append('data', JSON.stringify(data));