Downloading page files

If you put the URL of an image or flash file  into a browser, such as

http://www.asitesomewhere.com/images/apicture.jpg
http://www.asitesomewhere.com/images/aflash.swf

the browser displays the picture or the swf.  Is there a way to force the browser to go to the download dialog so you can actually download the file ("Save as.." .etc.)?

Thanks
steva
stevaAsked:
Who is Participating?
 
HainKurtConnect With a Mentor Sr. System AnalystCommented:
install flashget, and click add, paste the url and download... it will save to c:\downloads by default...
in case of image tou can right click and save to a location, swf will be played on browser, you can find it under temp internet files (may be difficult to find)
0
 
me655321Commented:
If you're looking for a way to code it into your HTML to force the download, the answer is no. There's no way to force the browser to download instead of opening the link. Usually you will just see instructions next to the link like "Right click link and select 'Save As'".
0
 
ValiMihaiCommented:
If your server supports PHP, you can do like this:

apicture.php
==========================

<?php
header("Content-Type: image/jpeg");
header("Content-disposition: attachment; filename=apicture.jpg");
echo file_get_contents("apicture.jpg");
?>
0
 
stevaAuthor Commented:
Flashget did the job.  Thanks.

0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.