I have a custom audio player that has the most basic functionality in React. I am unable to get the download functionality to work.
<a
href={audio.src}
download
rel="noopener noreferrer"
target="_blank"
>
<i className="someicon" />
</a>
This works for .wav files but it opens a page with the audio file for a .m4a file. The user can then download it from that page by right-clicking it.
Is it possible to download an m4a file? Or are certain audio file types disabled for security reasons?