diff --git a/unitylibs/core/workflow/workflow-upload/action-binder.js b/unitylibs/core/workflow/workflow-upload/action-binder.js index 1db1de00..e69d58a3 100644 --- a/unitylibs/core/workflow/workflow-upload/action-binder.js +++ b/unitylibs/core/workflow/workflow-upload/action-binder.js @@ -398,7 +398,10 @@ export default class ActionBinder { async checkImageDimensions(file) { const { getImageDimensions } = await import(`${getUnityLibs()}/utils/FileUtils.js`); - const { width, height } = await getImageDimensions(file); + let { width, height } = {}; + try { + ({ width, height } = await getImageDimensions(file)); + } catch (e) { return null; } const isMaxLimits = this.limits.maxWidth && this.limits.maxHeight; const isMinLimits = this.limits.minWidth && this.limits.minHeight; this.filesData = { ...this.filesData, width, height };