Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15401629
D21204.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D21204.id.diff
View Options
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(),
);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Mar 18, 6:35 PM (1 d, 17 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7381704
Default Alt Text
D21204.id.diff (1 KB)
Attached To
Mode
D21204: Add "uri" to the API results for File objects
Attached
Detach File
Event Timeline
Log In to Comment