mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17:38:19 +08:00
ui: add download retry
This commit is contained in:
2 files changed
+8
-2
No files matched your search
@@ -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]) {
|
||||
|
||||
Reference in new issue
Block a user