Skip to content

Commit 47d9b6b

Browse files
committed
fix: song with / in the title has part of filename stripped on opening
Fixes #16
1 parent 869d202 commit 47d9b6b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

server/src/file/file.service.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,7 @@ export class FileService {
102102
const command = new GetObjectCommand({
103103
Bucket: bucket,
104104
Key: key,
105-
ResponseContentDisposition: `attachment; filename="${filename
106-
.split('/')
107-
.pop()}"`,
105+
ResponseContentDisposition: `attachment; filename="${filename}"`,
108106
});
109107

110108
const signedUrl = await getSignedUrl(this.s3Client, command, {

0 commit comments

Comments
 (0)