mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-01 21:30:30 +01:00
fix: group cover upload not working for s3 upload (#7571)
This commit is contained in:
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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user