Closed capfsb closed 3 months ago
I want make presignedUrl with 30 days of expiry
here is docs of my S3 https://yandex.cloud/en/docs/storage/concepts/pre-signed-urls , look at max value of X-Amz-Expires available up to 30 days expiry
But i get thrown ExpiresParamError('expires param cannot be greater than 7 days'), i looked at code and seen than its hardcoded value
//part of presignSignatureV4 method if (expires > 604800) { throw new errors.ExpiresParamError('expires param cannot be greater than 7 days') }
Could make expiry param configurable? I want use all 30 days instead of 7 days by default? Or maybe i can make some work around?
p.s. i would't fork project
You can fork and make those changes. We don't really have a requirement to extend it beyond AWS S3 defaults.
I want make presignedUrl with 30 days of expiry
here is docs of my S3 https://yandex.cloud/en/docs/storage/concepts/pre-signed-urls , look at max value of X-Amz-Expires available up to 30 days expiry
But i get thrown ExpiresParamError('expires param cannot be greater than 7 days'), i looked at code and seen than its hardcoded value
Could make expiry param configurable? I want use all 30 days instead of 7 days by default? Or maybe i can make some work around?
p.s. i would't fork project