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

174
Vistas
How to prevent html audio to auto download on react apps

I have this audio code with audio file save inside the src/assets

const someAudio = require("src/assets/some-audio.wav");
    .
    .
    <audio controls preload="none" controlsList="nodownload">
      <source src={someAudio} type="audio/wav" />
    </audio>

When the app is running the page with this <audio> tag instead of playable audio it's going to download the audio file instead and the audio control became disabled, how to prevent the auto download when using audio stored in the same repository?

*note it works as expected by using audio url link outside the app

about 4 years ago · Santiago Trujillo
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