I am currently using the following code for my DOWNLOAD button.
<div>
" title="<?=getImageTitle();?>">download</div>
This prompts a password (.htaccess) and if the password is correct it displays the image in its own page where one can Right Click, Save As etc.
However, some of my users are unaware of even such simple tricks as Right Click and Save As so I am wondering if the DOWNLOAD link can directly prompt a "Save Image" type dialog box? Also can such an action be browser independent?
Thanks a lot.
Comments
Check here, looks good
http://actionscript.org/forums/showthread.php3?t=89784
<?php
header("Content-Length: " . filesize($filename));
header('Content-Type: image/jpg');
header('Content-Disposition: attachment; filename=test2.jpg');
?>
And it resulted in the following errors:
[Removed as requested]
Not sure if there's a way, but if anything it'd be done in i.php
http://iphoto.advancedpants.com
Still waiting for the trick you used. I notice it shows the full path to the file being downloaded. Can that be insecure?
can you send me the down.php at my email id mgupta02@gmail.com
Pls Help me out with it.
Please could you post the code? It would really help. Thanks.