From 44067f757c977ba1635450a5e62eaca895a174b7 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Wed, 12 Jun 2019 12:04:18 +0200 Subject: [PATCH] #2810 --- src/app/Magic/Fields/Files.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/app/Magic/Fields/Files.php b/src/app/Magic/Fields/Files.php index d845038..4f99f90 100644 --- a/src/app/Magic/Fields/Files.php +++ b/src/app/Magic/Fields/Files.php @@ -11,6 +11,7 @@ class Files extends Field protected $_databaseType = 'text'; protected $_collection = null; protected $_thumbCollection = 'backpack_thumb'; + protected $_maxFiles = 1; public function getDefaultAttributes() { @@ -20,7 +21,7 @@ class Files extends Field 'mime_types' => $this->_mimeTypes, 'collection' => $this->_collection, 'thumb_collection' => $this->_thumbCollection, - 'options' => ['thumbnailHeight' => 368, 'thumbnailWidth' => 232, 'maxFilesize' => 1024, 'addRemoveLinks' => true, 'createImageThumbnails' => true]]); + 'options' => ['thumbnailHeight' => 368, 'thumbnailWidth' => 232, 'maxFilesize' => 1024, 'addRemoveLinks' => true, 'createImageThumbnails' => true, 'maxFiles' => $this->_maxFiles]]); } protected function _postSetAttributes() -- 2.39.5