嘿,我在从 node.js 将图像上传到 s3 存储桶时遇到问题。我现在刚刚学习如何使用 AWS。安装模块时显示以下错误aws-sdk
。
(node:23844) NOTE: We are formalizing our plans to enter AWS SDK for JavaScript (v2) into maintenance mode in 2023.
Please migrate your code to use AWS SDK for JavaScript (v3).
For more information, check the migration guide at https://a.co/7PzMCcy
(Use `node --trace-warnings ...` to show where the warning was created)
谁能帮我编写将图像上传到 s3 存储桶的代码吗?
我正在尝试创建 s3 构造函数并定义accessKeyId
和secretAccessKey
。具体来说,我正在按照本教程链接到 aws。
谁能帮助我使用 SDK v3 来满足我的要求?