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

236
Vistas
Cannot upload JS files. REACT, Loopback

I am trying to upload javascript file(.js) in my project built with React, Redux, Loopback, Postgres.

I see that I end up getting 'text/javascript' as mime-type(filetype) at the client end and for the same file, I get 'application/javascript' as mime-type in the server. as the result, my uploads are failing.

[PS: if I put text/javascript in Database as supported mime-types uploads are successful(both from UI and postman)

but uploads fail from UI when I have application/javascript as mimetype in DB. but through POSTMAN it's successful.]

screen shots attached.
Images of JS file mime-types client end

Images of JS file mime-types server end

Help needed.
Thanks in Advance.

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