Explorar o código

[Form] set file field as multipart

Antoine Hérault %!s(int64=14) %!d(string=hai) anos
pai
achega
4237fdd918
Modificáronse 1 ficheiros con 9 adicións e 1 borrados
  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;
+    }
+}