Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F13959757
D11770.id28397.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
D11770.id28397.diff
View Options
diff --git a/src/applications/files/engine/PhabricatorS3FileStorageEngine.php b/src/applications/files/engine/PhabricatorS3FileStorageEngine.php
--- a/src/applications/files/engine/PhabricatorS3FileStorageEngine.php
+++ b/src/applications/files/engine/PhabricatorS3FileStorageEngine.php
@@ -32,12 +32,19 @@
// files more browsable with web/debugging tools like the S3 administration
// tool.
$seed = Filesystem::readRandomCharacters(20);
- $parts = array(
- substr($seed, 0, 2),
- substr($seed, 2, 2),
- substr($seed, 4),
- );
- $name = 'phabricator/'.implode('/', $parts);
+ $parts = array();
+ $parts[] = 'phabricator';
+
+ $instance_name = PhabricatorEnv::getEnvConfig('cluster.instance');
+ if (strlen($instance_name)) {
+ $parts[] = $instance_name;
+ }
+
+ $parts[] = substr($seed, 0, 2);
+ $parts[] = substr($seed, 2, 2);
+ $parts[] = substr($seed, 4);
+
+ $name = implode('/', $parts);
AphrontWriteGuard::willWrite();
$profiler = PhutilServiceProfiler::getInstance();
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Oct 15 2024, 8:39 PM (5 w, 14 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6714333
Default Alt Text
D11770.id28397.diff (1 KB)
Attached To
Mode
D11770: When cluster.instance is defined, use it to namespace S3 objects
Attached
Detach File
Event Timeline
Log In to Comment