]> _ Git - cubist_cms-back.git/commitdiff
wip #5543 @0.5
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 20 Oct 2022 15:02:54 +0000 (17:02 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 20 Oct 2022 15:02:54 +0000 (17:02 +0200)
src/app/Magic/Fields/DirectoryUpload.php [new file with mode: 0644]

diff --git a/src/app/Magic/Fields/DirectoryUpload.php b/src/app/Magic/Fields/DirectoryUpload.php
new file mode 100644 (file)
index 0000000..6e520d3
--- /dev/null
@@ -0,0 +1,13 @@
+<?php
+
+namespace Cubist\Backpack\Magic\Fields;
+
+class DirectoryUpload extends StandardFile
+{
+    protected function getFieldAttributes()
+    {
+        $res = parent::getFieldAttributes();
+        $res['directory'] = '';
+        return $res;
+    }
+}