take maxFilesize from systemsettings

* does not work everywhere...
This commit is contained in:
Jakobus Schürz 2023-03-13 13:47:09 +01:00
commit be2afac60d
8 changed files with 40 additions and 8 deletions

View file

@ -1139,7 +1139,11 @@ function photos_content(App $a)
'$preview' => DI::l10n()->t('Preview'),
'$loading' => DI::l10n()->t('Loading...'),
'$qcomment' => $qcomment,
'$rand_num' => Crypto::randomDigits(12)
'$rand_num' => Crypto::randomDigits(12),
// Dropzone
//'$max_imagesize' => DI::config()->get('system', 'maximagesize'),
// don't know, if DI::config.. does not work here, so it is set to a manual value
'$max_imagesize' => 100000,
]);
}
}
@ -1194,7 +1198,11 @@ function photos_content(App $a)
'$submit' => DI::l10n()->t('Submit'),
'$preview' => DI::l10n()->t('Preview'),
'$qcomment' => $qcomment,
'$rand_num' => Crypto::randomDigits(12)
'$rand_num' => Crypto::randomDigits(12),
// Dropzone
//'$max_imagesize' => DI::config()->get('system', 'maximagesize'),
// don't know, if DI::config.. does not work here, so it is set to a manual value
'$max_imagesize' => 200000
]);
}
@ -1268,7 +1276,11 @@ function photos_content(App $a)
'$submit' => DI::l10n()->t('Submit'),
'$preview' => DI::l10n()->t('Preview'),
'$qcomment' => $qcomment,
'$rand_num' => Crypto::randomDigits(12)
'$rand_num' => Crypto::randomDigits(12),
// Dropzone
//'$max_imagesize' => DI::config()->get('system', 'maximagesize'),
// don't know, if DI::config.. does not work here, so it is set to a manual value
'$max_imagesize' => 300000
]);
}
}