Rocket.Chat icon indicating copy to clipboard operation
Rocket.Chat copied to clipboard

Avatar upload/login does not work

Open Julime opened this issue 11 years ago • 18 comments

if i choose facebook/google/... i get the error "Service not configured" if i choose "select file" nothing happens

Julime avatar Jun 17 '15 13:06 Julime

Have you created the apps on facebook/google and got the credentials to configure the service?

engelgabriel avatar Jun 17 '15 14:06 engelgabriel

"select file" only work in Chrome.

Wloa avatar Jun 17 '15 14:06 Wloa

@engelgabriel - I don't think we have documentation to configure the service for FB, Google, and other.

Wloa avatar Jun 17 '15 14:06 Wloa

i did not create any apps or configured anything

Julime avatar Jun 17 '15 14:06 Julime

You need your own credentials to use any OAuth service.

I'll create some documentation about it.

engelgabriel avatar Jun 17 '15 15:06 engelgabriel

Adding a manual icon / avatar via the provided upload your own option does not work.

jerdog avatar Jun 18 '15 23:06 jerdog

@jerdog What browser and OS?

engelgabriel avatar Jun 19 '15 06:06 engelgabriel

Chrome (both Incognito and regular) and Firefox. Linux 15.04. Firefox doesn't even provide the file select prompt.

jerdog avatar Jun 19 '15 06:06 jerdog

In chrome the thumbnail of the image is shown in the avatar dialog but nothing happens if you chose that option.

nrunde avatar Jun 19 '15 06:06 nrunde

The "select file" is not working for me either in FF 39.0, OS X 10.10.4

mhkeller avatar Jul 13 '15 19:07 mhkeller

Does anyone have any details about the manual avatar upload problem? The demo seems to work just fine, but I can't get it to work on my own installation of Rocket.Chat. Could it possibly be that some file permissions are not set correctly?

wolfika avatar Jul 29 '15 20:07 wolfika

Have you changed your settings to save avatar in File System? As I remember ,if you didn't, all avatars are saved in MongoDB, so, no problem with file permissions.

rodrigok avatar Jul 29 '15 22:07 rodrigok

I also encountered this problem. Can you tell me how to change the settings to save avatar to local file system?

BTW, I use the latest image. ALso I found the avatar uploaded to mongoDB: { "_id" : "test.jpg", "filename" : "test.jpg", "contentType" : "image/jpeg", "length" : 148655, "chunkSize" : 261120, "uploadDate" : ISODate("2015-08-19T14:18:47.865Z"), "aliases" : null, "metadata" : null, "md5" : "6d30ae0b02ae0d36a7cd7629f12f2238" }

xjtufjj avatar Aug 19 '15 14:08 xjtufjj

@xjtufjj you can access the settings of your rocket.chat and go to API menu (admin/API), in the option avatarStore_type change to FileSystem, save changes and restart your server.

Let me know if it works

rodrigok avatar Aug 19 '15 16:08 rodrigok

Avatars still seem to not be working, at least for me they're not. I tried uploading a new one, which failed. I opened up permissions on the destination directory to 777 and it finally created an avatar file .jpg, but the file is empty. Even after it says it successfully uploaded the image, a subsequent refresh of the upload avatar page doesn't show the newly uploaded avatar?

indiggio avatar Sep 21 '15 19:09 indiggio

+1 I am also experiencing problems with avatars on my installation

royalaid avatar Sep 28 '15 01:09 royalaid

Recommend default setting for Avatar Storage Type be changed from GridFS to FileSystem. Also believe the issue is related to being assigned to a non-existent directory on startup: if its temporary storage, maybe use /tmp instead? Otherwise, may want to create the avatar subdirectory as part of the install.

unquietwiki avatar Oct 28 '15 23:10 unquietwiki

https://github.com/RocketChat/Rocket.Chat/issues/993

unquietwiki avatar Nov 05 '15 00:11 unquietwiki