Where did you install Firefox from? Help Mozilla uncover 3rd party websites that offer problematic Firefox installation by taking part in our campaign. There will be swag, and you'll be featured in our blog if you manage to report at least 10 valid reports!

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

Lolu chungechunge lwabekwa kunqolobane. Uyacelwa ubuze umbuzo omusha uma udinga usizo.

php download link brings up an octet/stream

  • 1 baphendule
  • 1 inale nkinga
  • 8 views
  • Igcine ukuphendulwa ngu the-edmeister

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.