X
Tap here to go to the mobile version of the site.

Support Forum

Changing the way browser handles txt files to directly download instead of previewing in browser

Posted

When I click on a URL that leads to a txt file, it is being previewed in the browser directly. I would like to change this so that it is downloaded automatically.

I checked how the application handles "Text Document" objects and it is set to "Save File", however the txt file is still being displayed directly.

The MIME Type is "text/plain", and seems to match the settings shown in mimetypes.rdf What do I do to make it so that txt files are downloaded automatically? Is there some setting similar to pdfjs that is overwriting my own content settings?

I am using firefox 22

When I click on a URL that leads to a txt file, it is being previewed in the browser directly. I would like to change this so that it is downloaded automatically. I checked how the application handles "Text Document" objects and it is set to "Save File", however the txt file is still being displayed directly. The MIME Type is "text/plain", and seems to match the settings shown in mimetypes.rdf What do I do to make it so that txt files are downloaded automatically? Is there some setting similar to pdfjs that is overwriting my own content settings? I am using firefox 22

Modified by MxyL

Additional System Details

Application

  • User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.72 Safari/537.36

More Information

the-edmeister
  • Top 10 Contributor
  • Moderator
4081 solutions 30812 answers

Helpful Reply

Right-click the hyperlink and use Save Link As....

Right-click the hyperlink and use '''Save Link As...'''.

Helpful Reply

That would allow me to save the text file to a folder but I don't want to do this everytime I click on a txt file link. I figured the content application settings are supposed to be used for things like this.

That would allow me to save the text file to a folder but I don't want to do this everytime I click on a txt file link. I figured the content application settings are supposed to be used for things like this.

Modified by MxyL

cor-el
  • Top 10 Contributor
  • Moderator
12898 solutions 118329 answers

Files that are send by the server as text/plain as is usually the case with text files are always opened in a browser tab if you left click such a link.
There is nothing that you can do to change this and you will have to force a download via "Save Link as".

Alternatively you can toggle the browser.altClickSave pref to true on the about:config page.
Then you can hold down the Alt key and left-click to download and save the file.

Files that are send by the server as text/plain as is usually the case with text files are always opened in a browser tab if you left click such a link.<br /> There is nothing that you can do to change this and you will have to force a download via "Save Link as". Alternatively you can toggle the browser.altClickSave pref to true on the <b>about:config</b> page.<br /> Then you can hold down the Alt key and left-click to download and save the file. *http://kb.mozillazine.org/about:config