Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

User Profile images not appearing

$
0
0

I created a web part to show user profile images, and having difficulty getting them to consistently show up. Well, most of the time they don't. Below is the simplest example, using regular old HTML (Yes, I've authenticated against the sharepoint site).

<!DOCTYPE html><html><head><title></title><meta charset="utf-8" /></head><body><img src="https://alias-my.sharepoint.com:443/User%20Photos/Profile%20Pictures/neilar_alias_onmicrosoft_com_LThumb.jpg" /></body></html>

When open the HTML in a (authenticated) browser, the image does not appear most of the time. Like, it rarely shows up, refreshing or closing/re-opening the page doesn't help. But - if I paste the src value of my <img> directly into a new tab on the browser, the image shows up just fine! Subsequently, if I bring up the html page again, or refresh it, the image suddenly appears.

Is there some trick to getting User Profile images to show up? The HTML I'm using above is isolating the issue as narrowly as I can, the actual webpart is using the ms-persona styles to show users and details about those users. (name, title, etc.)


who will babysit the babysitters?


Viewing all articles
Browse latest Browse all 7589

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>