Skip to content

Commit 9c8f1a1

Browse files
Luke SikinaLuke-Sikina
Luke Sikina
authored andcommitted
Namespace uploads by site ID
1 parent 2f2bccf commit 9c8f1a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

uploader/src/main/java/edu/harvard/dbmi/avillach/dataupload/upload/DataUploadService.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ private boolean uploadFileFromPath(Path p, SiteAWSInfo site, String dir) {
109109
.bucket(site.bucket())
110110
.serverSideEncryption(ServerSideEncryption.AWS_KMS)
111111
.ssekmsKeyId(site.kmsKeyID())
112-
.key(Path.of(dir, p.getFileName().toString()).toString())
112+
.key(Path.of(dir, site.siteName() + "_" + p.getFileName().toString()).toString())
113113
.build();
114114
s3.getS3Client(site.siteName()).putObject(request, body);
115115
} catch (AwsServiceException | SdkClientException e) {

0 commit comments

Comments
 (0)