mirror of
https://github.com/grocy/grocy.git
synced 2025-10-12 16:44:55 +00:00
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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user