Update amazonS3.js
parent
d4383dfe45
commit
1f80727362
|
@ -110,9 +110,10 @@ module.exports = function(s,config,lang){
|
||||||
ke: e.ke,
|
ke: e.ke,
|
||||||
time: k.startTime,
|
time: k.startTime,
|
||||||
status: 1,
|
status: 1,
|
||||||
|
ext: ext,
|
||||||
details: s.s({
|
details: s.s({
|
||||||
type : 's3',
|
type : 's3',
|
||||||
location : saveLocation
|
location : saveLocation,
|
||||||
}),
|
}),
|
||||||
size: k.filesize,
|
size: k.filesize,
|
||||||
end: k.endTime,
|
end: k.endTime,
|
||||||
|
@ -140,7 +141,6 @@ module.exports = function(s,config,lang){
|
||||||
Bucket: s.group[e.ke].init.aws_s3_bucket,
|
Bucket: s.group[e.ke].init.aws_s3_bucket,
|
||||||
Key: saveLocation,
|
Key: saveLocation,
|
||||||
Body: fileStream,
|
Body: fileStream,
|
||||||
ACL:'public-read',
|
|
||||||
ContentType:'image/jpeg'
|
ContentType:'image/jpeg'
|
||||||
},function(err,data){
|
},function(err,data){
|
||||||
if(err){
|
if(err){
|
||||||
|
|
Loading…
Reference in New Issue