]> git.mxchange.org Git - friendica-addons.git/commitdiff
bug #77, photo upload produces inelegant warning if sizelimit exceeded
authorfriendica <info@friendica.com>
Fri, 17 Feb 2012 06:48:12 +0000 (22:48 -0800)
committerfriendica <info@friendica.com>
Fri, 17 Feb 2012 06:48:12 +0000 (22:48 -0800)
js_upload.tgz
js_upload/js_upload.php

index 1140117525937590c716211402ff9311de09dfc7..fe51b8aea9d2eed665568fdca904cbece546055c 100755 (executable)
Binary files a/js_upload.tgz and b/js_upload.tgz differ
index c529be36602de6f0821a8e443ac369288dc63f4e..3ba5f9c4dc74a850d5082565a4df5d09be979972 100755 (executable)
@@ -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
        
  <div id="file-uploader-demo1">                
@@ -91,6 +93,7 @@ function createUploader() {
             '</li>',        
 
                debug: true,
+               sizeLimit: $maximagesize,
                onSubmit: function(id,filename) {
                        if (typeof acl!="undefined"){
                                uploader.setParams( {