From 017e25a52ccc3cdea627196e38451148bb05a1c3 Mon Sep 17 00:00:00 2001 From: MatteoPistorello Date: Tue, 10 May 2022 15:46:23 +0200 Subject: [PATCH] Gestione esclusione allegati import FE --- plugins/importFE/src/FatturaElettronica.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/plugins/importFE/src/FatturaElettronica.php b/plugins/importFE/src/FatturaElettronica.php index 11b815f32..67eed3b4f 100755 --- a/plugins/importFE/src/FatturaElettronica.php +++ b/plugins/importFE/src/FatturaElettronica.php @@ -186,10 +186,12 @@ class FatturaElettronica } $original = $allegato['NomeAttachment'].$extension; - Uploads::upload($content, array_merge($info, [ - 'name' => $allegato['NomeAttachment'], - 'original_name' => $original, - ])); + try { + Uploads::upload($content, array_merge($info, [ + 'name' => $allegato['NomeAttachment'], + 'original_name' => $original, + ])); + } catch(UnexpectedValueException $e) {} } // Registrazione XML come allegato