Skip to content

Node.js based forum software built for the modern web

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

jayjay98945ebcb8154
diff --git a/src/groups/cover.js b/src/groups/cover.js
index fc336d0e0d..a18062f307 100644
--- a/src/groups/cover.js
+++ b/src/groups/cover.js
@@ -38,6 +38,7 @@ module.exports = function (Groups) {
image.uploadImage(filename, 'files', {
path: tempPath,
uid: uid,
+ name: 'groupCover',
}, next);
},
function (uploadData, next) {
@@ -54,6 +55,7 @@ module.exports = function (Groups) {
image.uploadImage('groupCoverThumb-' + data.groupName + path.extname(tempPath), 'files', {
path: tempPath,
uid: uid,
+ name: 'groupCover',
}, next);
},
function (uploadData, next) {