Skip to main content
Participant
February 27, 2021
Answered

File Preview Error

  • February 27, 2021
  • 2 replies
  • 1077 views

Demo works fine but when I enter my own client ID and pdf I get the file preview error. Recreated credientials as suggested in this thread. but didn't solve the issue. Read a bit about CORS issues but the pdf I'm using is located at my own domain so don't think that's it. Tried using different pdfs and locating them in the main directory not using subfolders and still the same preview error. Any help would be appreciated to get this sized container working. Thanks,

.  

This topic has been closed for replies.
Correct answer Craig5CFA

After a quick break and some more messing around came across two things: first was the unwanted angular brackets I had on the client id, but the bigger issue is it won't work locally and I needed to actually launch my web page to have it function. Inconvenient for testing but at the end of the day up and running where it matters. 

2 replies

Craig5CFAAuthorCorrect answer
Participant
February 27, 2021

After a quick break and some more messing around came across two things: first was the unwanted angular brackets I had on the client id, but the bigger issue is it won't work locally and I needed to actually launch my web page to have it function. Inconvenient for testing but at the end of the day up and running where it matters. 

Legend
February 27, 2021

I've never done this but it seems to me that the URL in the code doesn't match the domain in the credentials.