diff --git a/src/Models/Upload.php b/src/Models/Upload.php
index f3af59eef..e5dd849a1 100755
--- a/src/Models/Upload.php
+++ b/src/Models/Upload.php
@@ -206,7 +206,7 @@ class Upload extends Model
*/
public function isImage()
{
- $list = ['jpg', 'png', 'gif', 'jpeg', 'bmp', 'svg'];
+ $list = ['jpg', 'png', 'gif', 'jpeg', 'bmp'];
return in_array($this->extension, $list);
}
diff --git a/view.php b/view.php
index 74dd8d008..fe9e5c8f5 100755
--- a/view.php
+++ b/view.php
@@ -91,11 +91,14 @@ if ($file->isFatturaElettronica()) {
if ($file->isImage()) {
echo '
';
- } else {
- if ($file->isPDF()) {
- $src = \Prints::getPDFLink($file->filepath);
- }
+ } elseif ($file->isPDF()) {
+ $preview = \Prints::getPDFLink($file->filepath);
+ echo '
+ ';
+ } else {
echo '