瀏覽代碼

Merge branch 'form_enctype'

Thomas 14 年之前
父節點
當前提交
aab6f0dc7e
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Resources/views/CRUD/base_edit.html.twig

+ 1 - 1
Resources/views/CRUD/base_edit.html.twig

@@ -23,7 +23,7 @@ file that was distributed with this source code.
 {% block side_menu %}{% if side_menu %}{{ side_menu.render|raw }}{% endif %}{% endblock %}
 
 {% block form %}
-    <form action="{{ admin.generateUrl('update', {'id': object.id}) }}" method="POST">
+    <form action="{{ admin.generateUrl('update', {'id': object.id}) }}"{% if form.isMultipart %} enctype="multipart/form-data"{% endif %} method="POST">
 
         {{ form_hidden(form) }}