I want to download and save an Azure Storage blob as a file on my local computer using the file name from the Azure Storage. I'm using the steps from here ( tutorial link ) in a file I've called download.php, and I can see the file contents in my browser when I go to download.php. If I then put a link in index.php to download.php, I can right click the link and "save as", and save the file as myfile.doc. I can then open myfile.doc succesfully.
index.php:
echo '<a href="http://myserver/dev/download.php" >Click me</a>';
However... What I'd like to know is how to get the link to "save as" without the user having to right click. Also, I have the file name (from Azure Storage) -- but I don't know how to get the file to save using that file name. How do I get the file to save to the user's Downloads directory with the file name when the user clicks on the link?