|
|
@ -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) {
|
|
|
|