{"record":{"id":"1640bf21dc5f51b4","repo":"phacility/phabricator","slug":"unable-to-decode-base64-data","errorCode":null,"errorMessage":"Unable to decode base64 data!","messagePattern":"Unable to decode base64 data!","errorType":"exception","errorClass":"Exception","httpStatus":null,"severity":"error","filePath":"src/applications/files/conduit/FileConduitAPIMethod.php","lineNumber":86,"sourceCode":"      throw new Exception(\n        pht(\n          'Chunk end byte is %d, not %d.',\n          $chunk->getByteEnd(),\n          $end));\n    }\n\n    if ($chunk->getDataFilePHID()) {\n      throw new Exception(\n        pht('Chunk has already been uploaded.'));\n    }\n\n    return $chunk;\n  }\n\n  protected function decodeBase64($data) {\n    $data = base64_decode($data, $strict = true);\n    if ($data === false) {\n      throw new Exception(pht('Unable to decode base64 data!'));\n    }\n    return $data;\n  }\n\n  protected function loadAnyMissingChunk(\n    PhabricatorUser $viewer,\n    PhabricatorFile $file) {\n\n    return $this->newChunkQuery($viewer, $file)\n      ->withIsComplete(false)\n      ->setLimit(1)\n      ->execute();\n  }\n\n  private function newChunkQuery(\n    PhabricatorUser $viewer,\n    PhabricatorFile $file) {\n","sourceCodeStart":68,"sourceCodeEnd":104,"githubUrl":"https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/files/conduit/FileConduitAPIMethod.php#L68-L104","documentation":"Error \"Unable to decode base64 data!\" thrown in phacility/phabricator.","triggerScenarios":"Thrown at src/applications/files/conduit/FileConduitAPIMethod.php:86 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"}