diff --git a/src/applications/files/storage/PhabricatorFile.php b/src/applications/files/storage/PhabricatorFile.php --- a/src/applications/files/storage/PhabricatorFile.php +++ b/src/applications/files/storage/PhabricatorFile.php @@ -1655,9 +1655,13 @@ ->setKey('name') ->setType('string') ->setDescription(pht('The name of the file.')), + id(new PhabricatorConduitSearchFieldSpecification()) + ->setKey('uri') + ->setType('uri') + ->setDescription(pht('View URI for the file.')), id(new PhabricatorConduitSearchFieldSpecification()) ->setKey('dataURI') - ->setType('string') + ->setType('uri') ->setDescription(pht('Download URI for the file data.')), id(new PhabricatorConduitSearchFieldSpecification()) ->setKey('size') @@ -1669,6 +1673,7 @@ public function getFieldValuesForConduit() { return array( 'name' => $this->getName(), + 'uri' => PhabricatorEnv::getURI($this->getURI()), 'dataURI' => $this->getCDNURI('data'), 'size' => (int)$this->getByteSize(), );