Skip to content

Commit

Permalink
fileLinkメソッドの修正 (#3986)
Browse files Browse the repository at this point in the history
  • Loading branch information
CUkomori authored Nov 6, 2024
1 parent 323b788 commit a0b3c2e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugins/baser-core/src/View/Helper/BcUploadHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
use BaserCore\Event\BcEventDispatcherTrait;
use BaserCore\Service\SiteConfigsServiceInterface;
use Cake\View\Helper\HtmlHelper;
use Laminas\Diactoros\UploadedFile;
use Throwable;

/**
Expand Down Expand Up @@ -159,7 +160,7 @@ public function fileLink($fieldName, $entity, $options = [])
$basePath = '/baser-core/uploads/tmp/';
}

if (is_array($value)) {
if (is_array($value) || $value instanceof UploadedFile) {
return false;
}

Expand Down

0 comments on commit a0b3c2e

Please sign in to comment.