Skip to content

Commit

Permalink
Fix missing enctype for MultipleFileField
Browse files Browse the repository at this point in the history
  • Loading branch information
greenwood712 authored and greenwood712 committed Apr 21, 2020
1 parent b5d8c55 commit 3c08282
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flask_bootstrap/templates/bootstrap/form.html
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@
{%- set _enctype = [] %}
{%- if enctype is none -%}
{%- for field in form %}
{%- if field.type == 'FileField' %}
{%- if field.type in ['FileField', 'MultipleFileField'] %}
{#- for loops come with a fairly watertight scope, so this list-hack is
used to be able to set values outside of it #}
{%- set _ = _enctype.append('multipart/form-data') -%}
Expand Down

0 comments on commit 3c08282

Please sign in to comment.