WebViewer Version: 8.7.0
Do you have an issue with a specific file(s)? Yes
Can you reproduce using one of our samples or online demos? No
Are you using the WebViewer server? No
Does the issue only happen on certain browsers? No
Is your issue related to a front-end framework? No
Is your issue related to annotations? No
Please give a brief summary of your issue:
(Think of this as an email subject)
Loading a PNG file throws an error in the loadDocument call.
Please describe your issue and provide steps to reproduce it:
(The more descriptive your answer, the faster we are able to help you)
I’m currently upgrading out WebViewer version from 7.2.0 to 8.7.0. Our front end is in typescript/React. Previously, PNG files loaded without any problem. After upgrading however, I get the below error.
webviewer-core.min.js:2383 Uncaught (in promise) Error: Failed to load image
at e.onerror (webviewer-core.min.js:2383:454)
Any help would be appreciated. Is there any extra logic needed in the latest version to handle loading images? Here’s the call that fails:
webViewer.Core.documentViewer.loadDocument(data.source, {
docId: data.id,
filename: data.name,
onError
});
Please provide a link to a minimal sample where the issue is reproducible: