Merge pull request #4819 from crobibero/download-name

Set filename when downloading file

(cherry picked from commit 668e168c47)
Signed-off-by: Joshua M. Boniface <joshua@boniface.me>
This commit is contained in:
Joshua M. Boniface 2020-12-18 02:17:24 -05:00
parent 6c2ddd9758
commit 5bf25ce2cc

View file

@ -667,7 +667,7 @@ namespace Jellyfin.Api.Controllers
}
// TODO determine non-ASCII validity.
return PhysicalFile(path, MimeTypes.GetMimeType(path));
return PhysicalFile(path, MimeTypes.GetMimeType(path), filename);
}
/// <summary>