{"record":{"id":"9f4fdd5e000b365d","repo":"phacility/phabricator","slug":"unknown-type-matched-as-image-mime-type","errorCode":null,"errorMessage":"Unknown type matched as image MIME type.","messagePattern":"Unknown type matched as image MIME type\\.","errorType":"exception","errorClass":"Exception","httpStatus":null,"severity":"error","filePath":"src/applications/files/storage/PhabricatorFile.php","lineNumber":994,"sourceCode":"      $this->getViewableMimeType(),\n      $matches);\n    if (!$ok) {\n      return false;\n    }\n\n    switch ($matches[1]) {\n      case 'jpg';\n      case 'jpeg':\n        return function_exists('imagejpeg');\n        break;\n      case 'png':\n        return function_exists('imagepng');\n        break;\n      case 'gif':\n        return function_exists('imagegif');\n        break;\n      default:\n        throw new Exception(pht('Unknown type matched as image MIME type.'));\n    }\n  }\n\n  public static function getTransformableImageFormats() {\n    $supported = array();\n\n    if (function_exists('imagejpeg')) {\n      $supported[] = 'jpg';\n    }\n\n    if (function_exists('imagepng')) {\n      $supported[] = 'png';\n    }\n\n    if (function_exists('imagegif')) {\n      $supported[] = 'gif';\n    }\n","sourceCodeStart":976,"sourceCodeEnd":1012,"githubUrl":"https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/files/storage/PhabricatorFile.php#L976-L1012","documentation":"Error \"Unknown type matched as image MIME type.\" thrown in phacility/phabricator.","triggerScenarios":"Thrown at src/applications/files/storage/PhabricatorFile.php:994 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"5720a38cfe95b00ca4be5016dd0d2f3195f4fa04","analyzedAt":"2026-08-21T05:07:25.672Z","schemaVersion":2},"datasetVersion":"2026-08-21T11:28:35.574Z"}