FIX: Ensure method exists before calling
`_perFileData` is not always defined and uploads failed when it is not.
This commit is contained in:
parent
5c23c6cdab
commit
64b089072a
|
@ -133,9 +133,11 @@ export default Mixin.create(UppyS3Multipart, {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (this._perFileData) {
|
||||||
Object.values(files).forEach((file) => {
|
Object.values(files).forEach((file) => {
|
||||||
deepMerge(file.meta, this._perFileData());
|
deepMerge(file.meta, this._perFileData());
|
||||||
});
|
});
|
||||||
|
}
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue