TF-654 Show the progress of download attachment on web

This commit is contained in:
dab246
2022-08-06 19:52:15 +07:00
committed by Dat H. Pham
parent 6ad10cad4a
commit b0298ab02a
9 changed files with 226 additions and 9 deletions
+8
View File
@@ -42,6 +42,14 @@ class Attachment with EquatableMixin {
return Uri.decodeFull(downloadUri);
}
String generateFileName() {
if (name?.isNotEmpty == true) {
return name!;
} else {
return '${blobId?.value}.${type?.subtype}';
}
}
@override
List<Object?> get props => [partId, blobId, size, name, type, cid, disposition];
}