You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 19, 2024. It is now read-only.
import{HttpRequest}from"@aws-sdk/protocol-http";import{S3RequestPresigner}from"@aws-sdk/s3-request-presigner";import{parseUrl}from"@aws-sdk/url-parser";import{Sha256}from"@aws-crypto/sha256-browser";import{Hash}from"@aws-sdk/hash-node";import{formatUrl}from"@aws-sdk/util-format-url";// ...consts3ObjectUrl=parseUrl(`https://${bucket}.s3.${region}.amazonaws.com/${key}`);constpresigner=newS3RequestPresigner({
credentials,
region,sha256: Hash.bind(null,"sha256"),// In Node.js//sha256: Sha256 // In browsers});// Create a GET request from S3 url.consturl=awaitpresigner.presign(newHttpRequest(s3ObjectUrl));console.log("PRESIGNED URL: ",formatUrl(url));
Description
Storj is an affordable high-performance S3 host. Many users could benefit from compatibility.
The text was updated successfully, but these errors were encountered: