瀏覽代碼

[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;
+    }
+}