I'm working on a reactjs project which has some files stored in the AWS s3 bucket. So when I try to view those files via iframe it doesn't get loaded & also I tried react-file-viewer package then it will give me errors of memory overflow and app crash.
Below is the file which I'm trying to download as a sample : https://ciao-live.s3.ap-south-1.amazonaws.com/CIAO_ERP/Documents/CustomerDocuments/1581489168529-pdf-sample.pdf
How can I solve this?
Update
I have got a solution unfortunately, this won't work for my AWS files, it will only download the files when it's in AWS S3 bucket:
<object width="100%"
height="100%"
data="https://ciao-live.s3.ap-south-1.amazonaws.com/CIAO_ERP/Documents/CustomerDocuments/1581489168529-pdf-sample.pdf"
type="application/pdf"
>
File Load Fails!
</object>