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

@@ -13,7 +13,7 @@
if ($("#instruction-manual")[0].files.length > 0)
{
var someRandomStuff = RandomString();
jsonData.instruction_manual_file_name = someRandomStuff + $("#instruction-manual")[0].files[0].name;
jsonData.instruction_manual_file_name = someRandomStuff + CleanFileName($("#instruction-manual")[0].files[0].name);
}
if (Grocy.DeleteInstructionManualOnSave)