From 6c5237f94ecb8b5ea78e733d1da6ddccf95ceebc Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Wed, 30 May 2012 22:44:44 +0200 Subject: [PATCH] Fix: add max file size --- htdocs/core/tpl/ajax/fileupload_main.tpl.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/htdocs/core/tpl/ajax/fileupload_main.tpl.php b/htdocs/core/tpl/ajax/fileupload_main.tpl.php index c81e99b7ad5..0ceddff436b 100644 --- a/htdocs/core/tpl/ajax/fileupload_main.tpl.php +++ b/htdocs/core/tpl/ajax/fileupload_main.tpl.php @@ -44,6 +44,11 @@ $(function () { // Initialize the jQuery File Upload widget: $('#fileupload').fileupload(); + // Options + $('#fileupload').fileupload('option', { + maxFileSize: max_file_size + }); + }); \ No newline at end of file