cyntler / react-doc-viewer

File viewer for React.
https://cyntler.github.io/react-doc-viewer
Apache License 2.0
392 stars 127 forks source link

Doc / Docx files from both local and urls are not working #220

Closed SidWML closed 10 months ago

SidWML commented 10 months ago

<DocViewer documents={[{uri:'/dum.doc', fileType: "doc",}]} pluginRenderers={DocViewerRenderers} /> but local doc files are not getting show there is an error doc

abdnafees commented 10 months ago

Same here. I think the default Request URL points to https://view.officeapps.live.com/ which requires authentication.

SidWML commented 10 months ago

@abdnafees did you find any solution for this

SidWML commented 10 months ago

image Hi Thanks for the library @cyntler. I am getting this error when I try to render doc and docs files

sridharvemulapalli commented 10 months ago

If you are using the local file, please change the doc object uri to use require.

ex : { uri: require(''), fileType: 'pdf' }