plangrid / react-file-viewer

MIT License
522 stars 337 forks source link

Corrupted xlsx file throwing error : "Error Corrupted zip : can't find end of central directory" #195

Open vaishnavi-tricon opened 3 years ago

vaishnavi-tricon commented 3 years ago

image

We are using this version - "react-file-viewer": "^1.2.1"

Steps to reproduce this issue -

Use any corrupted XLSX file, try to preview

Getting this error on the screen -

Error Corrupted zip : can't find end of central directory

It's working for unsupported formats, but not for corrupted files, our application is deployed to production, please help with this

SIMRAN88 commented 3 years ago

Facing a similar issue in our app. Can we handle this error and show the error message?

font-ds commented 2 years ago

Have you solved the problem?

SIMRAN88 commented 2 years ago

Nopes, have not solved this problem , but can raise a PR for the error handling

shaheer-glc commented 1 year ago

Any update on this ?