1
0
Fork 0
mirror of synced 2024-10-04 03:54:37 +13:00

update presigned url time

This commit is contained in:
Martin McKeaveney 2023-11-27 19:03:37 +00:00
parent a65b29eb88
commit 5301c1edd9

View file

@ -260,12 +260,12 @@ export async function listAllObjects(bucketName: string, path: string) {
}
/**
* Generate a presigned url with a default TTL of 1 day
* Generate a presigned url with a default TTL of 36 hours
*/
export function getPresignedUrl(
bucketName: string,
key: string,
durationSeconds: number = 86400
durationSeconds: number = 129600
) {
const objectStore = ObjectStore(bucketName, { presigning: true })
const params = {