I have asked a question earlier but I think I missed the point so I'm gonna post it again.
I'm using the header Content-Disposition.
The code I used to do so was like this:
header("Content-Disposition: attachment; filename='{$name}'");
It returns this:
Content-Disposition attachment; filename=' Bassnectar - Bass Head Official.mp3 '
Note the spaces before and after the quotes. This is a problem because it changes the extension from ".mp3" to ".mp3 " which is recognized as a different file. There has to be some way to fix this. I've changed everything, I've googled everything. I don't know what is left to do?