Претражи подршку

Избегните преваре подршке. Никада од вас нећемо тражити да зовете или шаљете поруке на број или да делите личне податке. Пријавите сумњиве радње преко „Пријавите злоупотребу” опције.

Learn More

php download link brings up an octet/stream

  • 1 одговор
  • 1 има овај проблем
  • 8 прегледа
  • Последњи одговор послао 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.

Сви одговори (1)

more options

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