RequestError:XHR error(req "error"),Put
sdk aliyun-oss-sdk-4.4.4.min.js
var
client
=
new
OSS
.
Wrapper
({
region:
'oss-cn-beijing'
,
secure:
true
,
accessKeyId:
'L**************zk'
,
accessKeySecret:
'Ant*******************3wa'
,
bucket:
'career-on-data'
,
});
client
.
put
(
`reward/
${
fileName
}
`
,
new
OSS
.
Buffer
(
data
)).
then
(
data
=>
{
address
=
null
;
validationCode
=
0
;
console
.
log
(
"put success"
);
},
err
=>
{
console
.
log
(
err
);
}) ;