mirror of
https://github.com/OpenSignLabs/OpenSign.git
synced 2026-09-10 03:37:40 +02:00
Update getSignedUrl.js
This commit is contained in:
@@ -8,7 +8,7 @@ export default function getPresignedUrl(url, adapter) {
|
|||||||
AWS.config.update({ credentials: credentials, region: adapter?.region || process.env.DO_REGION });
|
AWS.config.update({ credentials: credentials, region: adapter?.region || process.env.DO_REGION });
|
||||||
const spacesEndpoint = adapter?.endpoint || new AWS.Endpoint(process.env.DO_ENDPOINT);
|
const spacesEndpoint = adapter?.endpoint || new AWS.Endpoint(process.env.DO_ENDPOINT);
|
||||||
|
|
||||||
const s3 = new AWS.S3({ endpoint: spacesEndpoint });
|
const s3 = new AWS.S3({ endpoint: spacesEndpoint, signatureVersion: "v4" });
|
||||||
|
|
||||||
// Create a new URL object
|
// Create a new URL object
|
||||||
const parsedUrl = new URL(url);
|
const parsedUrl = new URL(url);
|
||||||
|
|||||||
Reference in New Issue
Block a user