samayo/bulletproof

File size error message is not complete

DmitryMyadzelets opened this issue · 1 comments

The correspondent code should be like this:

        /* check image size based on the settings */
        if ($files["size"] < $minSize || $files["size"] > $maxSize) {
            $min = intval($minSize / 1000) ?: 1;
            $max = intval($maxSize / 1000) ?: 1;
            $image->error = "Image size should be at least " . $min . " kB, and no more then " . $max . "kB";
            return null;
        }

fixed