fix(downloading): fix downloading songs from browser with special characters
fix downloading songs that contains special characters in name (cyrillic, local dialect...) fix #41
This commit is contained in:
@@ -34,7 +34,9 @@ export class TrackController {
|
||||
const readStream = createReadStream(
|
||||
this.service.getFolderName(track, track.playlist),
|
||||
);
|
||||
res.set({ 'Content-Disposition': `attachment; filename="${fileName}` });
|
||||
res.set({
|
||||
'Content-Disposition': `attachment; filename="${encodeURIComponent(fileName)}`,
|
||||
});
|
||||
return new StreamableFile(readStream);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user