Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

166
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!