Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to ignore "Content-Disposition: attachment" in Firefox [closed]

How can I cause Firefox to ignore the Content-Disposition: attachment header? I find it absolutely annoying that I can't view an image in the browser, because it asks me to download it.

I don't want to download the file, I just want to view it in the browser. If the browser doesn't have a plugin to handle it, then it should ask to download.

E.g. I have Adobe Acrobat Reader installed as a plugin for Firefox. I click a link to a PDF, and it asks me to save it, when it should open in the browser using the plugin. This is the behaviour if the server does not send the Content-Disposition: attachment header in the response.

Firefox 3.6.6 Windows XP SP3

like image 637
mctom987 Avatar asked Sep 05 '25 03:09

mctom987


2 Answers

Legacy InlineDisposition 1.0.2.4 by Kai Liu can fix this problem.

In the Classic Add-ons Archive at:

  • caa:addon/inlinedisposition
like image 168
dirtside Avatar answered Sep 08 '25 12:09

dirtside


The "Open in browser" extension is useful for formats supported natively by the browser, not sure about PDF.

Legacy version 1.18 (for users of browsers such as Waterfox Classic) is in the Classic Add-ons Archive at:

  • caa:addon/open-in-browser
like image 36
Nickolay Avatar answered Sep 08 '25 12:09

Nickolay