From 2e2f9314075a93cdf8a8c508aa17007f47276c4f Mon Sep 17 00:00:00 2001 From: Gilles van Eeden Date: Wed, 22 Nov 2017 13:43:31 +0100 Subject: [PATCH 1/2] Update pagemedia.html.twig --- .../grav/templates/forms/fields/pagemedia/pagemedia.html.twig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/themes/grav/templates/forms/fields/pagemedia/pagemedia.html.twig b/themes/grav/templates/forms/fields/pagemedia/pagemedia.html.twig index b102d1b99..4fc04b9c2 100644 --- a/themes/grav/templates/forms/fields/pagemedia/pagemedia.html.twig +++ b/themes/grav/templates/forms/fields/pagemedia/pagemedia.html.twig @@ -5,7 +5,7 @@
-
+
{% set uploadLimit = grav.config.system.media.upload_limit / 1024 / 1024 %} {% set dropzoneSettings = { maxFileSize: uploadLimit } %}
Date: Wed, 22 Nov 2017 21:37:03 +0100 Subject: [PATCH 2/2] Update pagemedia.html.twig --- .../grav/templates/forms/fields/pagemedia/pagemedia.html.twig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/themes/grav/templates/forms/fields/pagemedia/pagemedia.html.twig b/themes/grav/templates/forms/fields/pagemedia/pagemedia.html.twig index 4fc04b9c2..8eae572f3 100644 --- a/themes/grav/templates/forms/fields/pagemedia/pagemedia.html.twig +++ b/themes/grav/templates/forms/fields/pagemedia/pagemedia.html.twig @@ -1,11 +1,11 @@ {% set value = (value is null ? field.default : value) %} {% if context.folderExists %} -
+
-
+
{% set uploadLimit = grav.config.system.media.upload_limit / 1024 / 1024 %} {% set dropzoneSettings = { maxFileSize: uploadLimit } %}