Workaround for file upload problem when the file name contains Umlaute (seems to be a Linux only issue, fixes #1382)

This commit is contained in:
Bernd Bestel
2021-07-09 21:23:04 +02:00
parent 338a5016cf
commit 8348438148
6 changed files with 12 additions and 6 deletions

View File

@@ -196,3 +196,9 @@ function QrCodeImgHtml(text)
return img.outerHTML;
}
function CleanFileName(fileName)
{
// Umlaute seem to cause problems on Linux...
return fileName.toLowerCase().replaceAll(/ä/g, 'ae').replaceAll(/ö/g, 'oe').replaceAll(/ü/g, 'ue').replaceAll(/ß/g, 'ss');
}