Announcements
as per below video from Reza ,i just added path in image properties but it not displaying thumbnail, showing blank
https://www.youtube.com/watch?v=3dNeMVLZDHo
any thing wrong in below path code
"https://azureXXX.sharepoint.com/_layouts/15/getpreview.ashx?path ="&First(ThisItem.Attachments).AbsoluteUri
Hi @venky232
Remove the space after path?
Damien
removed space ,still showing blank
Can you share a screenshot of the control and expression to help understand your setup?
i also kept full url path, also it is no displaying image
"https://XXX.sharepoint.com/sites/ABC_MS/Lists/TGP/AllItems.aspx?skipSignal=true&noAuthRedirect=1/_layouts/15/getpreview.ashx?path="&First(ThisItem.Attachments).AbsoluteUri
I've just built this out myself. You don't need to prepend the URL - or at least I don't.
I simply used First(ThisItem.Attachments).AbsoluteUri and it worked fine for me.
yes it will work for normal image ,but not displaying pdf thumbnail
Apologies. I have uploaded a PDF and tried the following:
This is my expression:
"https://abdndamodev.sharepoint.com/_layouts/15/getpreview.ashx?path="&First(ThisItem.Attachments).AbsoluteUri
Hello venky232,
have you resolved this problem? I'm having the same problem like yours. With this Uri function, both of the image and pdf thumbnail are not showing. I have no idea why. Only using the First(ThisItem.Attachments).Value is fine for me without the uri in front of &.
Hi
I'm experiencing the same issue. On Friday after several attempts everything was working, but now on Monday it has reverting to showing the following instead of the attachment thumbnail.
I am using -
"https://site.sharepoint.com/_layouts/15/getpreview.ashx?path="&First(ThisItem.Attachments).AbsoluteUri & "&Resolution = 6"
All help appreciated
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
Congratulations to our 2026 Super Users!
Congratulations to our 2025 community superstars!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
WarrenBelz 549 Most Valuable Professional
Kalathiya 225 Super User 2026 Season 1
Haque 224