AWS S3介绍:
https://zhuanlan.zhihu.com/p/112057573
// 秘钥形式的登录上传
AWS.config.update(credentials)
var ep = new AWS.Endpoint(`${
netDiskInfo.useSSL}://${
netDiskInfo.endPoint}:${
parseInt(netDiskInfo.port)}`)
// 加载访问密匙 密匙在AWS后台用户管理中得到
var awsS3Client = new AWS.S3({
endpoint: ep })
1.新建文件
createBucket(bucketParams, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
emmmm
我发现这篇写得很详细了
https://blog.csdn.net/m0_37263637/article/details/80697920