Plank\Mediable\Exceptions\MediaUpload\FileSizeException::fileIsTooBig PHP Méthode

fileIsTooBig() public static méthode

public static fileIsTooBig ( $size, $max )
    public static function fileIsTooBig($size, $max)
    {
        return new static("File is too big ({$size} bytes). Maximum upload size is {$max} bytes.");
    }

Usage Example

 public function test_it_returns_a_413_for_too_big_file()
 {
     $e = (new SampleExceptionHandler())->render(FileSizeException::fileIsTooBig(3, 2));
     $this->assertHttpException($e, 413);
 }
All Usage Examples Of Plank\Mediable\Exceptions\MediaUpload\FileSizeException::fileIsTooBig
FileSizeException