core: sb aliyun

This commit is contained in:
undefined committed 2024-12-01 17:33:47 +08:00
1 parent b3ba002960
commit ac35a6ec45
1 file changed
+2 -1
+2 -1
View File
@@ -209,7 +209,8 @@ class RemoteStorageService {
Key: target, Key: target,
ResponseContentDisposition: filename ? `attachment; filename="${encodeRFC5987ValueChars(filename)}"` : '', ResponseContentDisposition: filename ? `attachment; filename="${encodeRFC5987ValueChars(filename)}"` : '',
}), { }), {
expiresIn: noExpire ? 24 * 60 * 60 * 7 : 10 * 60, // aliyun s3 will reject download if expires >= 7 days
expiresIn: noExpire ? 24 * 60 * 60 * 7 - 1 : 10 * 60,
}); });
// using something like /fs/ // using something like /fs/
if (useAlternativeEndpointFor && this.replaceWithAlternativeUrlFor[useAlternativeEndpointFor]) { if (useAlternativeEndpointFor && this.replaceWithAlternativeUrlFor[useAlternativeEndpointFor]) {