Przeszukaj pomoc

Unikaj oszustw związanych z pomocą.Nigdy nie będziemy prosić Cię o dzwonienie na numer telefonu, wysyłanie SMS-ów ani o udostępnianie danych osobowych. Zgłoś podejrzaną aktywność, korzystając z opcji „Zgłoś nadużycie”.

Więcej informacji

php download link brings up an octet/stream

  • 1 odpowiedź
  • 1 osoba ma ten problem
  • 8 wyświetleń
  • Ostatnia odpowiedź od 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.

Wszystkie odpowiedzi (1)

more options

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