Merge pull request #2414 from toanlamt/MOBILE-3448_integration

MOBILE-3448 File system: File name is not unique when uploading
main
Juan Leyva 2020-06-17 14:28:51 +02:00 committed by GitHub
commit a3f29ad86d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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;