As of right now, i can’t seem to find any way to fetch the user avatar image via the API. the avatar
field in the user json only reports back a relative path as far as i can tell.
Hi! I know this post is kind of old, but I finally found a way. So, here’s the thing:
For some reason (I believe it’s related to security), Kanboard’s procedures takes the “avatar_path” string and generate a md5 from it, and use that alongside with user_id and size in order to get the avatar. Once you have these 3 elements, you’ll use the AvatarFieldController URL to get the avatar itself:
‘[DOMAIN_URL]?controller=AvatarFileController&action=image&user_id=[USER_ID]&hash=[MD5_HASH]&size=[SIZE_NUMBER]’;
I hope it helps!
Hi, still struggling with avatar url link could you please provide some more information as to how this hash value is generated ?
Search hint: file AvatarFileModel.php