Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

195
Visualizações
How to open the fast a large PDF file from Amazon bucket s3 in ReactJS

I have solve cors issue from S3 bucket . it is my cors settings

[
    {
        "AllowedHeaders": [
            "*"
        ],
        "AllowedMethods": [
            "PUT",
            "POST",
            "DELETE"
        ],
        "AllowedOrigins": [
            "*"
        ],
        "ExposeHeaders": []
    },
    {
        "AllowedHeaders": [
            "*"
        ],
        "AllowedMethods": [
            "PUT",
            "POST",
            "DELETE"
        ],
        "AllowedOrigins": [
            "*"
        ],
        "ExposeHeaders": []
    },
    {
        "AllowedHeaders": [],
        "AllowedMethods": [
            "GET"
        ],
        "AllowedOrigins": [
            "*"
        ],
        "ExposeHeaders": []
    }
]
  1. I have used react-pdf library. but it has occured pdf loaded without error.
  2. I have used react-pdf-js-infinite library . It has been working but. I has been very slowly opening pdf file.

3.I have used iframe. it has been working only firefox. but Chrome has not been working.

  <object
            data={this.state.file}
            type="application/pdf"
            width="100%"
            height="600"
            style={{overflow:"unset"}}
          >
    
            <iframe
             sandbox="allow-same-origin allow-scripts allow-forms"
             title="PortletIFrameWidget"
             src={this.state.file}
             ref={(f) => { this.ifr = f }}
              width="500"
              height="678"
            >
            </iframe>
  1. I have used by

    this.url = 'https://docs.google.com/viewer?embedded=true&url=' +tempfile+ 'this.state.file+&hl=en&pid=explorer&efh=false&a=v&chrome=false&embedded=true'; for iframe . It has occured large file failed error

How to solve problem other way?

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda