bug #77, photo upload produces inelegant warning if sizelimit exceeded
parent
526c40edab
commit
fbfe9a3f29
BIN
js_upload.tgz
BIN
js_upload.tgz
Binary file not shown.
|
@ -45,6 +45,8 @@ function js_upload_form(&$a,&$b) {
|
||||||
$cancel = t('Cancel');
|
$cancel = t('Cancel');
|
||||||
$failed = t('Failed');
|
$failed = t('Failed');
|
||||||
|
|
||||||
|
$maximagesize = intval(get_config('system','maximagesize'));
|
||||||
|
|
||||||
$b['addon_text'] .= <<< EOT
|
$b['addon_text'] .= <<< EOT
|
||||||
|
|
||||||
<div id="file-uploader-demo1">
|
<div id="file-uploader-demo1">
|
||||||
|
@ -91,6 +93,7 @@ function createUploader() {
|
||||||
'</li>',
|
'</li>',
|
||||||
|
|
||||||
debug: true,
|
debug: true,
|
||||||
|
sizeLimit: $maximagesize,
|
||||||
onSubmit: function(id,filename) {
|
onSubmit: function(id,filename) {
|
||||||
if (typeof acl!="undefined"){
|
if (typeof acl!="undefined"){
|
||||||
uploader.setParams( {
|
uploader.setParams( {
|
||||||
|
|
Loading…
Reference in New Issue