From: Vincent Vanwaelscappel Date: Wed, 7 Jan 2026 13:58:10 +0000 (+0100) Subject: wip #7930 @1 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=59be7a0976c996abb0b41187eaf6b6e934e51d43;p=cubist_cms-back.git wip #7930 @1 --- diff --git a/src/app/Magic/Fields/HiddenFileStandaloneForm.php b/src/app/Magic/Fields/HiddenFileStandaloneForm.php new file mode 100644 index 0000000..df07600 --- /dev/null +++ b/src/app/Magic/Fields/HiddenFileStandaloneForm.php @@ -0,0 +1,31 @@ +_disk; + $res['multiple'] = $this->_multiple; + return $res; + } + + protected function _postSetAttributes() + { + parent::_postSetAttributes(); + if ($this->getAttribute('multiple', false)) { + $this->_adminType = 'upload_multiple'; + } else { + $this->_adminType = 'upload'; + } + } +} diff --git a/src/resources/views/fields/hiddenfilestandaloneform.blade.php b/src/resources/views/fields/hiddenfilestandaloneform.blade.php new file mode 100644 index 0000000..e69de29