Ver código fonte

[Form] set file field as multipart

Antoine Hérault 14 anos atrás
pai
commit
4237fdd918
1 arquivos alterados com 9 adições e 1 exclusões
  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;
+    }
+}