TF-4050 Preview and download uploaded file in composer on web

This commit is contained in:
dab246
2025-11-07 01:12:20 +07:00
committed by Dat H. Pham
parent ecd3ac0295
commit 972b20ec16
72 changed files with 2438 additions and 1751 deletions
@@ -40,6 +40,14 @@ extension SessionExtension on Session {
return downloadUrlDecode;
}
String getSafetyDownloadUrl({String? jmapUrl}) {
try {
return getDownloadUrl(jmapUrl: jmapUrl);
} catch(_) {
return '';
}
}
Uri getUploadUri(AccountId accountId, {String? jmapUrl}) {
final Uri uploadUrlValid;
if (jmapUrl != null) {