Explorar el Código

Merge pull request #4819 from crobibero/download-name

Set filename when downloading file
Joshua M. Boniface hace 4 años
padre
commit
668e168c47
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      Jellyfin.Api/Controllers/LibraryController.cs

+ 1 - 1
Jellyfin.Api/Controllers/LibraryController.cs

@@ -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>