diff --git a/server/core/controllers/download.ts b/server/core/controllers/download.ts index 51b7b3af5..ca28eee44 100644 --- a/server/core/controllers/download.ts +++ b/server/core/controllers/download.ts @@ -137,7 +137,8 @@ async function downloadHLSVideoFile (req: express.Request, res: express.Response if (!checkAllowResult(res, allowParameters, allowedResult)) return - const downloadFilename = `${video.name}-${videoFile.resolution}p-${streamingPlaylist.getStringType()}${videoFile.extname}` + const videoName = video.name.replace(/\//g, '_') + const downloadFilename = `${videoName}-${videoFile.resolution}p-${streamingPlaylist.getStringType()}${videoFile.extname}` if (videoFile.storage === VideoStorage.OBJECT_STORAGE) { return redirectToObjectStorage({ req, res, video, streamingPlaylist, file: videoFile, downloadFilename })