Share via

Graph API - Driver Item Preview

Tejendra Prasad Patel 111 Reputation points
2021-05-21T10:07:49.06+00:00

I am trying to preview XLS file - but its not working in browser.

Want to know what are the File Types are supported in IE, Edge, Firefox, Chrome browsers

I get below error in just simple HTML Iframe preview

Sorry, something went wrong
Item does not exist. It may have been deleted by another user.
TECHNICAL DETAILS
GO BACK TO SITE

 var previewFile = graphServiceClient.Sites[siteId].Drive.Items[uploadResult.ItemResponse.Id].Preview()
                         .Request(queryPreviewOptions)
                         .PostAsync();

var previewURL = previewFile.GetUrl;

using the previewURL in HTML Iframe.

But for other files XLSX, PPTX, DOCX are working....

Microsoft Security | Microsoft Graph

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.