Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

php download link brings up an octet/stream

more options

Hello!

I've programmed a website that distributes my music through a .php direct download link. In most web browsers, clicking on the said link would immediately download my music to their download folder, as expected.

With Firefox, however, people are reporting a failure in this download and when I tested it out for myself, it looks as if the filename has been cut down to one word and it appears to be in an "octet/stream", according to Firefox.

If I rename the file, giving it the .mp3 extension back, the file will play on my computer. But my question is, is there a different piece of code that I need to put on my website that will allow my users to directly download music files to their computer? Currently I have a secondary link for firefox users telling them to right-click and save, but I would like a one-button solution for everyone.

Hello! I've programmed a website that distributes my music through a .php direct download link. In most web browsers, clicking on the said link would immediately download my music to their download folder, as expected. With Firefox, however, people are reporting a failure in this download and when I tested it out for myself, it looks as if the filename has been cut down to one word and it appears to be in an "octet/stream", according to Firefox. If I rename the file, giving it the .mp3 extension back, the file will play on my computer. But my question is, is there a different piece of code that I need to put on my website that will allow my users to directly download music files to their computer? Currently I have a secondary link for firefox users telling them to right-click and save, but I would like a one-button solution for everyone.

All Replies (1)

more options

Don't have spaces in the file names, use-hyphens-or_underscores_instead of spaces.