Fixed issue with video upload timeout and upper case file type on ios

This commit is contained in:
Alex Tran 2022-02-05 15:58:36 -06:00
parent 69ed287974
commit ca0feb8c8d
4 changed files with 24 additions and 9 deletions

View file

@ -1,3 +1,4 @@
import 'dart:async';
import 'dart:convert';
import 'dart:io';
@ -35,7 +36,11 @@ class BackupService {
for (var entity in assetList) {
try {
file = await entity.file.timeout(const Duration(seconds: 5));
if (entity.type == AssetType.video) {
file = await entity.file;
} else {
file = await entity.file.timeout(const Duration(seconds: 5));
}
if (file != null) {
// reading exif