Merge pull request #2414 from toanlamt/MOBILE-3448_integration
MOBILE-3448 File system: File name is not unique when uploadingmain
commit
a3f29ad86d
|
@ -1158,7 +1158,7 @@ export class CoreFileProvider {
|
||||||
do {
|
do {
|
||||||
newName = fileNameWithoutExtension + '(' + num + ')' + extension;
|
newName = fileNameWithoutExtension + '(' + num + ')' + extension;
|
||||||
num++;
|
num++;
|
||||||
} while (typeof files[newName] != 'undefined');
|
} while (typeof files[newName.toLowerCase()] != 'undefined');
|
||||||
|
|
||||||
// Ask the user what he wants to do.
|
// Ask the user what he wants to do.
|
||||||
return newName;
|
return newName;
|
||||||
|
|
Loading…
Reference in New Issue