This site will have limited functionality while we undergo maintenance to improve your experience. If an article doesn't solve your issue and you want to ask a question, we have our support community waiting to help you at @FirefoxSupport on Twitter and/r/firefox on Reddit.

Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

How to prevent firefox to save a file when opening it in a new tab?

  • 14 cavab
  • 4 have this problem
  • 6 views
  • Last reply by m.d.w.

more options

When I am trying to just open a file from my e-mail attachments, for example, Firefox automatically saves the file, even if I chose "open in a new tab". As far as I understand Firefox should only open the file, not save it to my HD. How can I fix this ?

When I am trying to just open a file from my e-mail attachments, for example, Firefox automatically saves the file, even if I chose "open in a new tab". As far as I understand Firefox should only open the file, not save it to my HD. How can I fix this ?

All Replies (14)

more options

Then the server is almost certainly sending the Content-Disposition: attachment header. You can verify this using the Web Console — check the response headers for the file in question.

As a workaround, you can install the following extension.

more options

I tried the extension, but did not help. I cannot understand what is wrong. Should I reinstall Firefox ?

more options

Did you check via the Web Console (Web Developer > Web Console; Ctrl+Shift+K) how that file is send by the server?

See also:

more options

Don't reinstall Firefox. It won't accomplish anything but waste your time. Use the Web Console to inspect the response headers for the file in question, like I mentioned earlier. See the attachment for an illustration of what to watch out for.

Firefox also needs to know the type of the file in order to know what to do with it (e.g. application/pdf can be opened with Adobe Reader, etc.). A generic (application/octet-stream), missing or incorrect MIME type is a server problem — assuming it's not intentional.
If that's the case, you can work around it using the Force Content-Type extension, however it's a bit complicated since it requires a knowledge of regular expressions. Do not install it unless you know for a fact that you need it.

more options

Ok, I found the web consol and this: Content-Type:text/html; charset=UTF-8

Mmm...what should I do with this information ? As you can see I am no expert by any means and this is a bit frustrating. How can it be so difficult ? This ain't a big issue, but still I find it very annoying, Thanks for trying to help me out !

more options

I could not find the Content disposition, however.

more options

Oh, I found it ! Content-Disposition:inline;filename="l_32520121123fi00010008.pdf"

Now, what should I do about it ?

more options

And the Content Type was actually: Content-Type:application/pdf

more options

We have seen reports that the PDF plugin isn't working properly on Mac, so it is best to open PDF file in an external reader application (Adobe Reader or Preview).

You can check the settings in Preferences > Applications

  • Firefox > Preferences > Applications > Adobe PDF document : Use Adobe Reader

PDF files may also be found under another entry like Portable document.

more options

Did not help. And the problem occurs with every kind of files (doc.-files for example).

more options

Firefox only handles text/html and text/plain files and a few other MIME types internally.
All other files need to be opened in an external application application or make use of a possible plugin for Firefox.
You can set and manage which action Firefox takes as explained in the above posted knowledge base article.

more options

Ok, I guess I have no choise but to change the browser to an easier one. Thank you everyone for trying to help out !

more options

I'm sorry if I overcomplicated things with the mention of server headers that can mess up Firefox's handling of files. They're unfortunately somewhat common, so I thought it was a likely possibility worth checking out (for that matter, I still don't know if in the above example Content-Disposition is inline by default, or as a result of having the Inline Disposition add-on installed).

In any case, if you hadn't given up, at this point you'd just have to make sure that for the Adobe Acrobat Document file type, the default action is Use Adobe Reader to open the file outside Firefox. The aforementioned article explains how to do this quickly, and there's even an illustration.

more options

I am having the same issue and the same level of frustration as the person who originally posted this comment 2 weeks ago. Following the Firefox update this morning, I no longer have the option between opening a file and saving a file - the system automatically opens the save window. Is there any way to revert this setting to its previous state?

None of the suggestions that have been given thus far actually resolve this issue.