Downloading page files

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

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.)?

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)
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'".
If your server supports PHP, you can do like this:


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

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.