diff --git a/flask_bootstrap/templates/bootstrap/wtf.html b/flask_bootstrap/templates/bootstrap/wtf.html index cfc45be9..47d22453 100644 --- a/flask_bootstrap/templates/bootstrap/wtf.html +++ b/flask_bootstrap/templates/bootstrap/wtf.html @@ -175,7 +175,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') -%}