This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { GetObjectCommand, PutObjectCommand, S3Client } from "@aws-sdk/client-s3"; | |
| import { getSignedUrl } from "@aws-sdk/s3-request-presigner"; | |
| const accessKeyId = process.env.AWS_ACCESS_KEY_ID; | |
| const secretAccessKey = process.env.AWS_SECRET_ACCESS_KEY; | |
| const bucketName = process.env.BUCKET_NAME; | |
| const s3Client = new S3Client({ | |
| region: "ap-south-1", | |
| credentials: { |