- Newest
- Most votes
- Most comments
Hi - Hoping that the values of "key" and attributes of object "params" are correctly resolved before being used in
s3.getSignedUrl('putObject', params, (err, signedURL) =>
Also hoping that you are using PUT method in testing tools like postman and select test file in the form-data section as an example and not using this as a GET method.
Optionally, is it possible to use and try v3 of the AWS SDK for Javascript? In v2, the S3 client can be created using single monolithic package. In v3, the service clients are prefixed with client- followed by service name. So you can create the modular S3 client by importing @aws-sdk/client-s3
Refer Generating a presigned URL to upload an object, check JavaScript SDK under "Using the AWS SDKs" : https://docs.aws.amazon.com/AmazonS3/latest/userguide/PresignedUrlUploadObject.html
GitHub : https://github.com/awsdocs/aws-doc-sdk-examples/tree/main/javascriptv3/example_code/s3#code-examples
Relevant content
- asked 3 years ago
- asked 6 months ago
- AWS OFFICIALUpdated 5 months ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago