Commit 0bb98037 authored by Carsten  Rose's avatar Carsten Rose
Browse files

Add 'Bytes' to message 'File too big'

parent 1ab168bd
Pipeline #2368 passed with stages
in 2 minutes and 53 seconds
......@@ -112,7 +112,7 @@ class File {
$maxFileSize = $this->store->getVar(FE_FILE_MAX_FILE_SIZE, STORE_SIP . STORE_ZERO);
if ($size >= $maxFileSize) {
throw new \UserFormException('File too big. Max allowed size: ' . $maxFileSize, ERROR_UPLOAD_TOO_BIG);
throw new \UserFormException('File too big. Max allowed size: ' . $maxFileSize . ' Bytes', ERROR_UPLOAD_TOO_BIG);
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment