Преглед изворни кода

[Form] set file field as multipart

Antoine Hérault пре 14 година
родитељ
комит
4237fdd918
1 измењених фајлова са 9 додато и 1 уклоњено
  1. 9 1
      src/Symfony/Component/Form/FileField.php

+ 9 - 1
src/Symfony/Component/Form/FileField.php

@@ -24,4 +24,12 @@ class FileField extends InputField
             'type' => 'file',
         ), $attributes));
     }
-}
+
+    /**
+     * {@inheritDoc}
+     */
+    public function isMultipart()
+    {
+        return true;
+    }
+}