getPreview.ashx SVG support? #3700
Labels
area:other
Category: unknown (does not fit any other category)
status:answered
Answer to a question.
type:question
Question... if answered, will be tagged as such.
Category
Applies to : SharePoint Online
Expected or Desired Behavior
I should be able to get a svg preview using getPreview.ashx.
Observed Behavior
In a site collection, I have a svg image in a document library.
I want to be able to see this image when I have a limited access.
I use the
/layouts/15/getPreview.ashx
handler to do that.When I get
/layouts/15/getPreview.ashx?action=supportedTypes
. I see that svg is supported, but when I try to get the svg image via this handler, I have a http 501 response with no body.Steps to Reproduce
Upload a svg image to a document library (to make things easier, ensure that the site collection url has no weird characters such as spaces or accents).
myImageUrl = Complete image url beginning with https://{tenantName}.sharepoint.com
MYIMAGEURLENCODED = encodeURIComponent(myImageUrl);
GET /layouts/15/getPreview.ashx?path=MYIMAGEURLENCODED
Any help would be appreciated !
Thanks,
Charles
The text was updated successfully, but these errors were encountered: