Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

By default Firefox opens pages with MIME

Content-Type: text/plain

in the browser. I would like to instead download these files. I realize I can File Save Page As, but I would like the Save File dialog to come up on these files.

share|improve this question

1 Answer 1

At the top of the Firefox window, click on the Firefox button and then select Options Select the Applications panel.

The Applications panel will display. Select the type of file for which you want to change the default action.

Multiple entries for the same file extension? Some extensions are used by more than one Internet Media type.

The Action column will give you a drop-down menu, with options on action to take, whenever you click that type of file.

enter image description here

Always ask: 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: will always save the file to your computer using the Downloads window, whenever you click that type of file.

Open the file with an application or plugin of your choosing.

Click OK to close the Options window after making changes

OK, since the comments don't allow formatting that well let me edit here. If you don't see the TXT file type do the following:

In Firefox and Mozilla Suite/SeaMonkey, type about:config in the Location Bar (address bar) and press Enter to display the list of preferences, as shown below in Firefox 14 on Windows 7. If you see a page with the warning message, This might void your warranty!, click the button labeled "I'll be careful, I promise!", to continue.

enter image description here

To add a new preference, context-click (right-click) anywhere in the list of preferences. In the context menu, select New then select the type of preference you are adding.

String is any sequence of text
Integer is a number
Boolean is true-false 

To modify an existing preference, context-click (right-click) on the preference, select Modify and type in the new value. In some cases, Toggle will be the selection offered for boolean (true-false) preferences.

If you set the Boolean pref browser.altClickSave to true on the about:config page then you can force a download if you hold down the Alt key and left-click the link.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.