From: Vincent Vanwaelscappel Date: Wed, 12 Jun 2019 10:04:18 +0000 (+0200) Subject: #2810 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=44067f757c977ba1635450a5e62eaca895a174b7;p=cubist_cms-back.git #2810 --- 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()