Browse Source

Added multipart enctype to handle file upload

Pascal Burkhard 14 năm trước cách đây
mục cha
commit
e70fa4c556
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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}) }}" enctype="multipart/form-data" method="POST">
 
         {{ form_hidden(form) }}