Plank\Mediable\Exceptions\MediaUpload\FileNotSupportedException::unrecognizedFileType PHP Method

unrecognizedFileType() public static method

public static unrecognizedFileType ( $mime, $ext )
    public static function unrecognizedFileType($mime, $ext)
    {
        return new static("File with mime of `{$mime}` and extension `{$ext}` is not recognized.");
    }

Usage Example

 public function test_it_returns_a_415_for_unknown_type()
 {
     $e = (new SampleExceptionHandler())->render(FileNotSupportedException::unrecognizedFileType('text/foo', 'bar'));
     $this->assertHttpException($e, 415);
 }
All Usage Examples Of Plank\Mediable\Exceptions\MediaUpload\FileNotSupportedException::unrecognizedFileType