diff --git a/js_upload.tgz b/js_upload.tgz index 11401175..fe51b8ae 100755 Binary files a/js_upload.tgz and b/js_upload.tgz differ diff --git a/js_upload/js_upload.php b/js_upload/js_upload.php index c529be36..3ba5f9c4 100755 --- a/js_upload/js_upload.php +++ b/js_upload/js_upload.php @@ -45,6 +45,8 @@ function js_upload_form(&$a,&$b) { $cancel = t('Cancel'); $failed = t('Failed'); + $maximagesize = intval(get_config('system','maximagesize')); + $b['addon_text'] .= <<< EOT
@@ -91,6 +93,7 @@ function createUploader() { '', debug: true, + sizeLimit: $maximagesize, onSubmit: function(id,filename) { if (typeof acl!="undefined"){ uploader.setParams( {