From c5571d92378b2dc0529d05b8f6ad3349b2d128cc Mon Sep 17 00:00:00 2001 From: Jerome Jutteau Date: Thu, 12 Mar 2015 20:16:34 +0100 Subject: [PATCH] Fixes #7 Jirafeau can now limit file size - Can limit file size whatever upload method is used - Add a
for error handling - Fix courgette style --- index.php | 20 +++++++++--- lib/config.original.php | 4 +++ lib/functions.js | 58 ++++++++++++++++++++++++++++------- lib/functions.php | 21 ++++++++++--- lib/lang/fr.php | 4 +++ media/courgette/style.css.php | 2 ++ script.php | 33 +++++++++++++++++++- 7 files changed, 121 insertions(+), 21 deletions(-) diff --git a/index.php b/index.php index 8c2898a..36ef29e 100644 --- a/index.php +++ b/index.php @@ -141,6 +141,9 @@ if (jirafeau_has_upload_password ($cfg))

+
+
+
@@ -148,12 +151,9 @@ if (jirafeau_has_upload_password ($cfg))

+ onchange="control_selected_file_size(, '')"/>

- +
@@ -190,6 +190,15 @@ if (jirafeau_has_upload_password ($cfg)) + + 0) + { + echo '

' . t ('File size is limited to'); + echo " " . $cfg['maximal_upload_size'] . " MB

"; + } + ?> +