Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8052105
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T07:27:53+00:00 2026-06-05T07:27:53+00:00

I have a link to download mp3 on all mobile device they can read

  • 0

I have a link to download mp3 on all mobile device they can read them.
I also have an Acer E320 with Android 2.3.4 and I want to download my mp3 by clicking my link (web server Apache; this is some PHP source behind that link).

I tried with a BlackBerry, and I got the file.
I tried with my Firefox browser with a user-agent of a Samsung Galaxy S with Android, and I got the file.
I tried with my Acer E320 with the same Android 2.3.4, and… I didn’t get the file.

I am obviously sure that comes from the OS, I’ll try with a Windows Phone tomorrow but I’m pretty sure this will works.

Here are my sources for the download:

    <?php
    // assume that all variables are correctly set
    header("Pragma: public");
    header("Expires: 0");
    header("Cache-Control:");
    header("Cache-Control: public");
    header("Content-Description: File Transfer");
    header("Content-Type: audio/mpeg");
    header('Content-Disposition: attachment; filename="'.$filename.'";');
    header("Content-Transfer-Encoding: binary");
    header('Content-Range: ' . $download_range);
    header('Content-Length: ' . $download_size);
    readfile($filename);
    ?>

Thank you if you have any idea why this code doesn’t work on an Android phone.

EDIT: I tried with an HTC with Windows Phone OS. The download didn’t start but I can see my hit on the apache log… It seemes that Android is not alone…

2nd EDIT: I finnaly find it: there’s a pre-fetch done with Android that kill my download because of a one-use token.
Thanks all

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T07:27:55+00:00Added an answer on June 5, 2026 at 7:27 am

    I finally found it:

    There’s a pre-fetch done with Android that kills my download, because of a one-use token.

    Thanks all.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In a list of generated reports, have a link to download them. The contents
I have this bit of code to download an mp3 from the server. All
Digital commercial products that customers pay for download link. I have put all the
I have a download link, and after the user downloads it I want to
i have a link <a id=DownloadLink href='controller/action' target=_blank>Download File</a> that has to open a
When I have download sample code from this link and than try to build
I have a link: <a class=fg-button ui-state-default fg-button-icon-left assistButton pbcType=download title=Click for download information><span
I have a basic idea of HTML. I want to create the download link
i have this link but i am trying to figure out how to download
Possible Duplicate: open download dialog with php I have a link in my page

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.