[js_upload] Adjusted code use of shorthand notation for image size upload limits #1325

Merged
MarekBenjamin merged 2 commits from fix_jsupload into develop 2022-11-30 22:12:35 +01:00
Showing only changes of commit efb98c8457 - Show all commits

View file

@ -221,7 +221,7 @@ class qqFileUploader
// }
$maximagesize = DI::config()->get('system', 'maximagesize');
$maximagesize = Strings::getBytesFromShorthand(DI::config()->get('system', 'maximagesize'));
if (($maximagesize) && ($size > $maximagesize)) {
return ['error' => DI::l10n()->t('Image exceeds size limit of %s', Strings::formatBytes($maximagesize))];