diff --git a/.gitignore b/.gitignore index 0414de0317..afd5bc9428 100644 --- a/.gitignore +++ b/.gitignore @@ -10,3 +10,4 @@ /venv /node_modules/ npm-debug.log +/.idea diff --git a/wagtail/wagtailimages/templates/wagtailimages/multiple/add.html b/wagtail/wagtailimages/templates/wagtailimages/multiple/add.html index b6d5115d2a..67d5825e50 100644 --- a/wagtail/wagtailimages/templates/wagtailimages/multiple/add.html +++ b/wagtail/wagtailimages/templates/wagtailimages/multiple/add.html @@ -74,7 +74,7 @@ window.fileupload_opts = { simple_upload_url: "{% url 'wagtailimages_add_image' %}", accepted_file_types: /\.({{ allowed_extensions|join:"|" }})$/i, //must be regex - max_file_size: {{ max_filesize|default:"null" }}, //numeric format + max_file_size: {{ max_filesize|stringformat:"s"|default:"null" }}, //numeric format errormessages: { max_file_size: "{{ error_max_file_size }}", accepted_file_types: "{{ error_accepted_file_types }}"