src/MediaUploader.php
private function verifyFileSize($size)
    {
        $max = $this->config['max_size'];
        if ($max > 0 && $size > $max) {
            throw FileSizeException::fileIsTooBig($size, $max);
        }

        return $size;
    }
private function verifyFileSize($size)
    {
        $max = $this->config['max_size'];
        if ($max > 0 && $size > $max) {
            throw FileSizeException::fileIsTooBig($size, $max);
        }

        return $size;
    }
private function verifyFileSize ( $ size ) { $ max = $ this -> config [ 'max_size' ] ; if ( $ max > 0 && $ size > $ max ) { throw FileSizeException :: fileIsTooBig ( $ size , $ max ) ; } return $ size ; }
Verify that the file being uploaded is not larger than the maximum.
@param  int $size
@return int
@throws \Plank\Mediable\Exceptions\MediaUpload\FileSizeException If the file is too large
Verify that the file being uploaded is not larger than the maximum .