phacility/phabricator · error · Exception

Failed to load file.

Error message

Failed to load file.

What it means

Error "Failed to load file." thrown in phacility/phabricator.

Source

Thrown at src/applications/files/controller/PhabricatorFileDropUploadController.php:114

        'name' => $request->getStr('name'),
        'authorPHID' => $viewer->getPHID(),
        'viewPolicy' => $view_policy,
        'isExplicitUpload' => true,
      ));

    $result = $file->getDragAndDropDictionary();
    return id(new AphrontAjaxResponse())->setContent($result);
  }

  private function loadFile($file_phid) {
    $viewer = $this->getViewer();

    $file = id(new PhabricatorFileQuery())
      ->setViewer($viewer)
      ->withPHIDs(array($file_phid))
      ->executeOne();
    if (!$file) {
      throw new Exception(pht('Failed to load file.'));
    }

    return $file;
  }

}

View on GitHub (pinned to 5720a38cfe)

When it happens

Trigger: Thrown at src/applications/files/controller/PhabricatorFileDropUploadController.php:114 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of phacility/phabricator@5720a38cfe (2026-08-21). Data as JSON: /api/errors/b3abbc46d4db290f. Report an issue: GitHub.