Selaa lähdekoodia

[Form] set file field as multipart

Antoine Hérault 14 vuotta sitten
vanhempi
commit
4237fdd918
1 muutettua tiedostoa jossa 9 lisäystä ja 1 poistoa
  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',
             'type' => 'file',
         ), $attributes));
         ), $attributes));
     }
     }
-}
+
+    /**
+     * {@inheritDoc}
+     */
+    public function isMultipart()
+    {
+        return true;
+    }
+}