Fix photo viewer
This commit is contained in:
parent
3e974c0351
commit
8bb9909660
|
@ -666,8 +666,7 @@ namespace Jellyfin.Api.Controllers
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO determine non-ASCII validity.
|
// TODO determine non-ASCII validity.
|
||||||
using var fileStream = new FileStream(path, FileMode.Open, FileAccess.Read);
|
return PhysicalFile(path, MimeTypes.GetMimeType(path));
|
||||||
return File(fileStream, MimeTypes.GetMimeType(path), filename);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user