Търсене в помощните статии

Избягвайте измамите при поддръжката. Никога няма да ви помолим да се обадите или изпратите SMS на телефонен номер или да споделите лична информация. Моля, докладвайте подозрителна активност на "Докладване за злоупотреба".

Научете повече

Firefox does not remember open with setting for pdf files

more options

Hi all,

When I open a pdf in FF, it does not remember my settings, even though I have set to always open in Adobe Reader. I am running the latest version of FF and Win 10. I have recreated the handler.json file.

Regards,

Steve

Hi all, When I open a pdf in FF, it does not remember my settings, even though I have set to always open in Adobe Reader. I am running the latest version of FF and Win 10. I have recreated the handler.json file. Regards, Steve

Избрано решение

Hi Steve, unfortunately, your preference is not used for every download of a .pdf file -- sites can set two HTTP headers that will trigger the download dialog, bypassing Firefox's automatic handling of downloads:

(1) Content-Disposition

If a server sends a Content-Disposition header set to attachment, which bypasses viewing in a tab, Firefox will always show the download dialog.

(2) Content-Type

The setting on the Options/Preferences page is keyed to the content type application/pdf, not the .pdf file name extension. If the server sends a different content type, Firefox won't use the PDF instructions.

If you would consider using an add-on to address these issues, I have one here:

https://addons.mozilla.org/firefox/addon/content-type-fixer/

When enabled (click the Zzzz button to wake it up), issue #2 is handled automatically. To address #1, tick the "Follow my settings (inline)" option on the extension menu:

<center></center> Прочетете този отговор в контекста 👍 0

Всички отговори (1)

more options

Избрано решение

Hi Steve, unfortunately, your preference is not used for every download of a .pdf file -- sites can set two HTTP headers that will trigger the download dialog, bypassing Firefox's automatic handling of downloads:

(1) Content-Disposition

If a server sends a Content-Disposition header set to attachment, which bypasses viewing in a tab, Firefox will always show the download dialog.

(2) Content-Type

The setting on the Options/Preferences page is keyed to the content type application/pdf, not the .pdf file name extension. If the server sends a different content type, Firefox won't use the PDF instructions.

If you would consider using an add-on to address these issues, I have one here:

https://addons.mozilla.org/firefox/addon/content-type-fixer/

When enabled (click the Zzzz button to wake it up), issue #2 is handled automatically. To address #1, tick the "Follow my settings (inline)" option on the extension menu:

<center></center>