Change what Firefox does when you click on or download a file

No one has helped translate this article yet. If you already know how localizing for SUMO works, start translating now. If you want to learn how to translate articles for SUMO, please start here.

This article will describe how Firefox handles downloads for different types of files and how you can change that behavior.

Download actions

When you click a link to download a file, the Internet Media type, also called the MIME type or Content type, determines what action Firefox will take. You may already have an application or plugin installed that will automatically handle the download. Other times, you may see a dialog asking whether you want to save the file or open it with a specific application. When you tell Firefox to open or save the file and also check the option to "Do this automatically for files like this from now on" (see below), an entry for that type of file appears in the Applications panel of your Firefox OptionsPreferences General panel of your Firefox OptionsPreferences under the Applications section.

Changing download actions

This will not affect media embedded in a web page - only links to the files themselves.

  1. Click the menu button New Fx Menu Fx57Menu and choose Options.Preferences.
  2. Select the Applications panel.In the General panel, go to the Applications section.
  3. Select the type of file for which you want to change the default action.
    Multiple entries for the same file format or extension? Some file types can include more than one Internet Media type.
  4. The Action column will give you a drop-down menu, with options on action to take, whenever you click that type of file.
    Fx56General-Applications applications 57
    • Preview in Firefox: Select this if you want Firefox to display the content. It's only applicable to a limited number of types, those that Firefox is able to decode such as Podcast, Video Podcast, Web Feed, and PDF.
    • Always ask: This will prompt you to select what action you want Firefox to take when you click on that type of file. This can be useful if Firefox is automatically saving a file type or is always opening it with a certain program and you want to be asked what to do.
    • Save File: This will always save the file to your computer using the Downloads window, whenever you click that type of file.
    • Use ... : Open the file with an application or plugin of your choosing.
  5. Close the about:preferences page. Any changes you've made will automatically be saved.

Adding download actions

  1. On the web, find a link to a file matching the type you want to add.
  2. Click on the file link to download it.
  3. Select how you want Firefox to handle the file:
  4. In the Opening file window, check mark Do this automatically for files like this from now on.
    Fx4WinOpeningFile MacOpeningFile
  5. Click OK.
Is Do this automatically for files like this from now on disabled? This can happen if the website's server incorrectly specifies the Internet Media type of the file. It also can happen if the server assigns "Content-Disposition: attachment" to the file.

این مقاله مفید بود؟ لطفاً صبر کنید...

These fine people helped write this article: AliceWyman, Chris Ilias, Tonnes, scoobidiver, Swarnava Sengupta, soucet, ideato, Lan, scootergrisen, Joni, Heather. You can help too - find out how.