Fix merge issue

This commit is contained in:
Alexandre Bodin 2022-08-09 20:58:24 +02:00
parent 35c3ea6eec
commit 03aa29e527

View File

@ -23,11 +23,14 @@ const parseFilesData = async (files) => {
const getStream = () => fs.createReadStream(file.path); const getStream = () => fs.createReadStream(file.path);
// Add formated data for the upload provider // Add formated data for the upload provider
formatedFilesData[inputName] = strapi.plugin('upload').service('upload').formatFileInfo({ formatedFilesData[inputName] = await strapi
filename: file.name, .plugin('upload')
type: file.type, .service('upload')
size: file.size, .formatFileInfo({
}); filename: file.name,
type: file.type,
size: file.size,
});
// Add image dimensions // Add image dimensions
Object.assign( Object.assign(