Browse Source

bug #77, photo upload produces inelegant warning if sizelimit exceeded

pull/7/head
friendica 11 years ago
parent
commit
fbfe9a3f29
  1. BIN
      js_upload.tgz
  2. 3
      js_upload/js_upload.php

BIN
js_upload.tgz

Binary file not shown.

3
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
<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( {

Loading…
Cancel
Save