From: friendica Date: Fri, 17 Feb 2012 06:48:12 +0000 (-0800) Subject: bug #77, photo upload produces inelegant warning if sizelimit exceeded X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=fbfe9a3f29178732e655bb75ae7b9aa0ee2d1468;p=friendica-addons.git bug #77, photo upload produces inelegant warning if sizelimit exceeded --- 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( {