cyntler / cyntler/react-doc-viewer

Issue displaying Microsoft files (docx, xlsx...) stored on s3 buckets

Open
#228 14 comments 2 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
481
Forks
147
PR merge metrics
No merged PRs in 30d

Description

Hi,

Has anyone encountered this error when accessing s3 urls via DocViewerRenderers and been able to solve it?

![image](https://github.com/cyntler/react-doc-viewer/assets/68714721/957961df-8b72-4cbf-abe8-581d9515aa8e)

The scenario is, I am passing an s3 url xlsx file, once I render the document I get this error above. Here’s a snapshot of the component

![image](https://github.com/cyntler/react-doc-viewer/assets/68714721/ca61b224-2402-4f18-b713-a8e83764db04)

I also tried to create custom renderers using Google and Microsoft viewers (see below) but I'm getting the same error

![image](https://github.com/cyntler/react-doc-viewer/assets/68714721/ece1cca9-f5cd-47d3-a16a-9e33e078b0eb)

![image](https://github.com/cyntler/react-doc-viewer/assets/68714721/ce5fdf00-553e-4172-b108-8aabe20b0e21)

![image](https://github.com/cyntler/react-doc-viewer/assets/68714721/f3730ab1-94c6-4d11-a348-162174f3287f)

The bucket policy is set as public and it works fine for pdfs and text files

I'm using MinIO to store the files and the application is built with Laravel Sail + InertiaJS (React).

If you require any additional information please let me know.

Thanks!

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.