Page MenuHomePhabricator

D11770.id28397.diff
No OneTemporary

D11770.id28397.diff

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

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)

Event Timeline