Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No Renderer for file type application/octet-stream #84

Open
masudhossain opened this issue May 25, 2021 · 7 comments
Open

No Renderer for file type application/octet-stream #84

masudhossain opened this issue May 25, 2021 · 7 comments

Comments

@masudhossain
Copy link

masudhossain commented May 25, 2021

Getting this error when i try to view pptx or docx files.

import React from 'react'
import { useRouteMatch } from "react-router-dom";
import DocViewer, { MSDocRenderer } from "react-doc-viewer";

const Document = (props) => {
  const match = useRouteMatch();

  const docs = [
    { uri: "https://queue.nyc3.cdn.digitaloceanspaces.com/lkfjslkdfj.pptx" }
  ];

  return(
    <React.Fragment>
      Document.js
      <DocViewer documents={docs} pluginRenderers={[MSDocRenderer]} />
    </React.Fragment>
  )
}

export default Document; 
// https://queue.nyc3.cdn.digitaloceanspaces.com/agency%20reachout%20.docx
// https://queue.nyc3.cdn.digitaloceanspaces.com/lkfjslkdfj.pptx
@lruizcr
Copy link

lruizcr commented Jul 28, 2021

I am getting same issue when try to render a pdf file.

@amansani
Copy link

amansani commented Aug 3, 2021

I am getting the same issue for docx file type. Any update on this issue?

@lruizcr
Copy link

lruizcr commented Aug 17, 2021

@masudhossain @amansani This type of issue is server related. The server that returns the documents should specify in the header the type of document. The solution will depend on your current architecture.
I hope this helps to resolve your issue.

@arpitprod
Copy link

@lruizcr yes, this helped

@divanshu222
Copy link

@lruizcr can help with an example please

@lakshmi-intechcode
Copy link

can someone elaborate the solution. we are facing the similar issue while we reading from aws s3 bucket

@sanjay-techuz
Copy link

can someone elaborate the solution. we are facing the similar issue while we reading from aws s3 bucket

I am getting the same issue for reading file from s3. Any update on this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants