mirror of
https://github.com/strapi/strapi.git
synced 2025-08-01 05:17:14 +00:00
Fix merge issue
This commit is contained in:
parent
35c3ea6eec
commit
03aa29e527
@ -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(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user