[js_upload] Adjusted code use of shorthand notation for image size upload limits #1325
1 changed files with 1 additions and 1 deletions
|
@ -221,7 +221,7 @@ class qqFileUploader
|
||||||
// }
|
// }
|
||||||
|
|
||||||
|
|
||||||
$maximagesize = DI::config()->get('system', 'maximagesize');
|
$maximagesize = Strings::getBytesFromShorthand(DI::config()->get('system', 'maximagesize'));
|
||||||
|
|
||||||
if (($maximagesize) && ($size > $maximagesize)) {
|
if (($maximagesize) && ($size > $maximagesize)) {
|
||||||
return ['error' => DI::l10n()->t('Image exceeds size limit of %s', Strings::formatBytes($maximagesize))];
|
return ['error' => DI::l10n()->t('Image exceeds size limit of %s', Strings::formatBytes($maximagesize))];
|
||||||
|
|
Loading…
Reference in a new issue