wrong expiry param
This commit is contained in:
parent
3e84622e51
commit
0a901e458e
|
@ -178,19 +178,7 @@ export async function upload({
|
||||||
config.Metadata = metadata
|
config.Metadata = metadata
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Playing around here trying to get TTL working */
|
return objectStore.upload(config).promise()
|
||||||
const currentDate = new Date()
|
|
||||||
currentDate.setMinutes(currentDate.getMinutes() + 30)
|
|
||||||
|
|
||||||
return objectStore
|
|
||||||
.upload(config, {
|
|
||||||
params: {
|
|
||||||
Expires: currentDate,
|
|
||||||
Bucket: bucketName,
|
|
||||||
Key: sanitizeKey(filename),
|
|
||||||
},
|
|
||||||
})
|
|
||||||
.promise()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue