From 3a24dcca2ea5920f0cf0d03497a2724d9f79b7c4 Mon Sep 17 00:00:00 2001 From: toanlam Date: Wed, 17 Jun 2020 17:10:35 +0700 Subject: [PATCH] MOBILE-3448 File system: File name is not unique when uploading --- src/providers/file.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/providers/file.ts b/src/providers/file.ts index e5d30996c..684d7f214 100644 --- a/src/providers/file.ts +++ b/src/providers/file.ts @@ -1158,7 +1158,7 @@ export class CoreFileProvider { do { newName = fileNameWithoutExtension + '(' + num + ')' + extension; num++; - } while (typeof files[newName] != 'undefined'); + } while (typeof files[newName.toLowerCase()] != 'undefined'); // Ask the user what he wants to do. return newName;