TF-654 Show the progress of download attachment on web
This commit is contained in:
@@ -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];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user