diff --git a/flask_bootstrap/templates/bootstrap/form.html b/flask_bootstrap/templates/bootstrap/form.html index 61814b5..d0c1a6d 100644 --- a/flask_bootstrap/templates/bootstrap/form.html +++ b/flask_bootstrap/templates/bootstrap/form.html @@ -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') -%}