This article describes how Firefox handles downloaded files for different types of content, such as saving a file or opening an application installed on your computer, and how you can change that behavior.
When you click on a link to download a file, the Media type, also called the MIME type or Content type, as configured by the web server, will determine what action Firefox will take.
Firefox will not be able to properly handle a file if a misconfigured web server sends it with an incorrect content type. For example, Firefox may display the content as plain text instead of opening the file in an application. To learn more, see Properly configuring server MIME types and Common MIME types at MDN web docs. You can contact the website in such cases, or you can try a Firefox add-on such as Content-Type Fixer to work around the problem. (If you use an add-on and need help with it, you should visit the add-on site or contact the add-on developer for support.)
If Firefox does not have a set download action for a type of file, Firefox will save the file by default. If you select Always Open Similar Files in the Downloads panel right-click context menu for the file, (see below) a new Content Type and Action entry will be added to the General panel Applications section of Firefox settings.
Note: Firefox treats links to some types of media files, such as .mp3 files, the same way it treats .txt and .html links, by handling them internally. The file will not be downloaded and the Downloads panel will not open. Instead, the file will open and play in Firefox, with a control bar displayed to manage playback (see this article for details). Firefox only uses Applications settings to determine what action is taken when a file is treated as a download (see below).
You can change what action Firefox takes for defined content types. This will not affect media embedded in a web page – only links to the files themselves.
When you click on a link to download a file and Firefox doesn't have a content type and download action set up for that type of file, Firefox will save the file by default. If you want Firefox to ask you what to do with these downloads, you can go to the bottom of the Applications section under What should Firefox do with other files? and select Ask whether to open or save files .
When you choose the setting Ask whether to open or save files , you will see a What should Firefox do with this file? prompt (see below) when you download any file that has no defined content type.
When you choose Ask whether to open or save files in Firefox settings under Applications (as shown above) and you download a file with no defined content type and action, you will see a What should Firefox do with this file? prompt. When you choose an action and also select the option, Do this automatically for files like this from now on, a new Content Type and Action entry will be added to the Applications list for that type of file. See the "What should Firefox do with this file?" prompt section below, for more information.
When you download a type of file that can be opened with an installed application you can set Firefox to always open similar files as follows:
When you select Always Open Similar Files from the context menu for a downloaded item, the file will open in the system default application and a new Content Type entry will be added to the Applications section of Firefox settings, with the download action set to use that application. The next time you download that type of file and open the context menu, the Always Open Similar Files option will be check marked.
If you clear the check mark, the download action for that Content Type in the Applications section of Firefox settings will be changed to Save File. You can later select a different action in Firefox settings (see above) if you wish, such as Use other… to choose a different application, or Always ask so that Firefox asks you what to do when you download that type of file.
Note: When you open a file in Firefox with an application, the file is also saved to the folder location shown next to Save files to: in the Downloads section under Files and Applications in Firefox settings (see Where to find and manage downloaded files in Firefox for details). To learn more about how file downloads are handled, see this article.
If you change the action for a defined file type to Always ask or if you select Ask whether to open or save files for other files not listed in the Applications section of Firefox settings (see above), you will see a What should Firefox do with this file? prompt for those downloaded files.
Warning: Do not choose Firefox as a helper application to always open the file type, as this can cause a problem where Firefox repeatedly opens empty tabs or windows after you click on a link.
The "What should Firefox do with this file?" prompt may not show a default application for some file types you download, when you have Firefox set to Ask whether to open or save files in the Applications section of Firefox settings. You can click the Choose… Browse… button to choose an application installed on your computer to open the file.
If you are having problems with how Firefox is handling file downloads that you can't resolve, or if you just want to start fresh, you can restore the default content types and actions by refreshing Firefox. To learn more, see Refresh Firefox - reset add-ons and settings.
These fine people helped write this article:
Grow and share your expertise with others. Answer questions and improve our knowledge base.
Your Downloads panel and Library keep track of files you download while using Firefox. This article explains how to access and manage the files.