Browse Source

[Form] set file field as multipart

Antoine Hérault 14 năm trước cách đây
mục cha
commit
4237fdd918
1 tập tin đã thay đổi với 9 bổ sung1 xóa
  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;
+    }
+}