- Le plus récent
- Le plus de votes
- La plupart des commentaires
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
Contenus pertinents
- demandé il y a un an
- demandé il y a un mois
- demandé il y a un an
- AWS OFFICIELA mis à jour il y a 7 mois
- AWS OFFICIELA mis à jour il y a 2 ans
- AWS OFFICIELA mis à jour il y a 2 ans
- AWS OFFICIELA mis à jour il y a 2 ans