I am trying to make an android default browser download an image ( [url removed, login to view] )
I looked through the internet and got several places saying that this solution would definitely work, but it doesn't. (to test - select an animation, click "Generate preloader", then the "download now" button.
These are the headers I am setting:
header("Pragma: public"); // required
header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
header("Cache-Control: private",false); // required for certain browsers
header("Content-Disposition: attachment; filename="[url removed, login to view]"" );
Note that when the "Download now" button is clicked what I do is set the src attribute in Iframe to the php script that generates the loading animation with the headers above. Script is in PHP
So I need the image starting download when the "download now" button is clicked in android default browser along with all other popular browsers both on computer and mobile devices. The solution with just changing headers will be prioritized.
PLEASE, don't bid if you can't do it :)
6 freelancers are bidding on average $108 for this job
Hi, I'm an expert about PHP. I have read your project and confident that can handle it. Please contact me if you need help. Hope can work with you. Best regards, Mr New