]> git.mxchange.org Git - friendica-addons.git/blobdiff - js_upload/js_upload.php
Merge branch 'master' of github.com:annando/friendica-addons
[friendica-addons.git] / js_upload / js_upload.php
old mode 100644 (file)
new mode 100755 (executable)
index c529be3..3ba5f9c
@@ -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( {