ui: add download retry

This commit is contained in:
undefined committed 2024-12-08 12:50:23 +08:00
1 parent ac35a6ec45
commit 181c5cb4a4
2 files changed
+8 -2

No files matched your search

+1 -1
View File
@@ -210,7 +210,7 @@ class RemoteStorageService {
ResponseContentDisposition: filename ? `attachment; filename="${encodeRFC5987ValueChars(filename)}"` : '',
}), {
// aliyun s3 will reject download if expires >= 7 days
expiresIn: noExpire ? 24 * 60 * 60 * 7 - 1 : 10 * 60,
expiresIn: noExpire ? 24 * 60 * 60 * 7 - 1 : 30 * 60,
});
// using something like /fs/
if (useAlternativeEndpointFor && this.replaceWithAlternativeUrlFor[useAlternativeEndpointFor]) {