Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

192
Vistas
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 la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda