mirror of
https://github.com/immich-app/immich.git
synced 2024-12-28 22:51:59 +00:00
fix(server): images with non-ascii names failing to load (#14512)
* utf-8 filename * Update file.ts Co-authored-by: Michel Heusschen <59014050+michelheusschen@users.noreply.github.com> --------- Co-authored-by: Michel Heusschen <59014050+michelheusschen@users.noreply.github.com>
This commit is contained in:
parent
d36477381a
commit
07096bdcee
1 changed files with 1 additions and 1 deletions
|
@ -58,7 +58,7 @@ export const sendFile = async (
|
||||||
|
|
||||||
res.header('Content-Type', file.contentType);
|
res.header('Content-Type', file.contentType);
|
||||||
if (file.fileName) {
|
if (file.fileName) {
|
||||||
res.header('Content-Disposition', `inline; filename="${file.fileName}"`);
|
res.header('Content-Disposition', `inline; filename*=UTF-8''${encodeURIComponent(file.fileName)}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
const options: SendFileOptions = { dotfiles: 'allow' };
|
const options: SendFileOptions = { dotfiles: 'allow' };
|
||||||
|
|
Loading…
Reference in a new issue