Skip to content

Node.js based forum software built for the modern web

add extension to name, when upload profile pictures

Barış Soner Uşaklıf66317b7a729
diff --git a/src/user/picture.js b/src/user/picture.js
index fe8a99c9a8..c60c95b721 100644
--- a/src/user/picture.js
+++ b/src/user/picture.js
@@ -144,7 +144,7 @@ module.exports = function (User) {
const uploadedImage = await image.uploadImage(filename, `profile/uid-${updateUid}`, {
uid: updateUid,
path: normalizedPath,
- name: 'profileAvatar',
+ name: `profileAvatar${extension}`,
});
await User.updateProfile(callerUid, {