fix: group cover upload not working for s3 upload (#7571)

v1.18.x
jayjay9 6 years ago committed by Barış Soner Uşaklı
parent b990312088
commit 8945ebcb81

@ -38,6 +38,7 @@ module.exports = function (Groups) {
image.uploadImage(filename, 'files', { image.uploadImage(filename, 'files', {
path: tempPath, path: tempPath,
uid: uid, uid: uid,
name: 'groupCover',
}, next); }, next);
}, },
function (uploadData, next) { function (uploadData, next) {
@ -54,6 +55,7 @@ module.exports = function (Groups) {
image.uploadImage('groupCoverThumb-' + data.groupName + path.extname(tempPath), 'files', { image.uploadImage('groupCoverThumb-' + data.groupName + path.extname(tempPath), 'files', {
path: tempPath, path: tempPath,
uid: uid, uid: uid,
name: 'groupCover',
}, next); }, next);
}, },
function (uploadData, next) { function (uploadData, next) {

Loading…
Cancel
Save