Updating User Profile picture using Write API
Unsolved
NodeBB Development
-
Hi,
I am trying to update a user's profile picture using the Write API.
Here's what I have so far, but it isn't working:
var image = { name: "profileCover", path: "test.png", uid: 1 }; socket.emit('user.updateProfile', image, function(err, data) { console.log(data); });
Can anyone provide some help?
Thanks!
-
@pichalite I tried using http://localhost:4567/images/logo.png to test it out, but it didn't work.
Copyright © 2024 NodeBB | Contributors