Fixed issue with filename is blank on iOS causing update to fail

This commit is contained in:
Alex
2022-08-18 16:27:08 -05:00
parent 4805d86a7c
commit 25338ce02f
2 changed files with 2 additions and 3 deletions

View File

@@ -196,8 +196,7 @@ class BackupService {
}
if (file != null) {
String originalFileName =
entity.title != null ? entity.title! : await entity.titleAsync;
String originalFileName = await entity.titleAsync;
String fileNameWithoutPath =
originalFileName.toString().split(".")[0];
var fileExtension = p.extension(file.path);