Downloading page files

Posted on 2009-12-20
Last Modified: 2012-05-08
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.)?

Question by:steva
    LVL 51

    Accepted Solution

    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)
    LVL 4

    Expert Comment

    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'".
    LVL 1

    Expert Comment

    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");

    Author Comment

    Flashget did the job.  Thanks.


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to improve team productivity

    Quip adds documents, spreadsheets, and tasklists to your Slack experience
    - Elevate ideas to Quip docs
    - Share Quip docs in Slack
    - Get notified of changes to your docs
    - Available on iOS/Android/Desktop/Web
    - Online/Offline

    Someone recently asked me about how to display a progress indicator on a page while an iframe is loading. And I remember when I first came across this myself. It was a bit tricky to get my head around, but really, it's very simple. The most impor…
    Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
    In this tutorial viewers will learn how to position overlapping items using z-index in CSS. They will also learn the restrictions on the z-index property.  Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Red.…
    The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

    794 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now