src/Titon/Utility/Validate.php
public static function minFilesize($input, $min) {
        if (static::file($input)) {
            $size = $input['size'];

        } else if (file_exists($input)) {
            $size = filesize($input);

        } else {
            return false;
        }

        return ($size >= Number::bytesFrom($min));
    }
public static function minFilesize($input, $min) {
        if (static::file($input)) {
            $size = $input['size'];

        } else if (file_exists($input)) {
            $size = filesize($input);

        } else {
            return false;
        }

        return ($size >= Number::bytesFrom($min));
    }
public static function minFilesize ( $ input , $ min ) { if ( static :: file ( $ input ) ) { $ size = $ input [ 'size' ] ; } else if ( file_exists ( $ input ) ) { $ size = filesize ( $ input ) ; } else { return false ; } return ( $ size >= Number :: bytesFrom ( $ min ) ) ; }
Validate an images file size is above the minimum.

@param array $input
@param int $min
@return bool
Validate an images file size is above the minimum .