Where did you install Firefox from? Help Mozilla uncover 3rd party websites that offer problematic Firefox installation by taking part in our campaign. There will be swag, and you'll be featured in our blog if you manage to report at least 10 valid reports!

Tìm kiếm hỗ trợ

Tránh các lừa đảo về hỗ trợ. Chúng tôi sẽ không bao giờ yêu cầu bạn gọi hoặc nhắn tin đến số điện thoại hoặc chia sẻ thông tin cá nhân. Vui lòng báo cáo hoạt động đáng ngờ bằng cách sử dụng tùy chọn "Báo cáo lạm dụng".

Learn More

How to vary behavior when handling PDFs: download some, show others

  • 2 trả lời
  • 0 gặp vấn đề này
  • 9 lượt xem
  • Trả lời mới nhất được viết bởi zeroknight

more options

When Content Type PDF is set to Open in Firefox in Settings, some hyperlinks (see 'Download PDF' on https://arxiv.org/abs/2402.00923) will navigate to the hosted PDF without downloading to my computer. Others (see 'Download PDF' on https://www.overleaf.com/project/65c142c6d78ec5a8a34636b0) will download to my device then open the downloaded file in browser. (I am also interested in what causes this distinction in the first place.)

When it is set to Save File, both types of links will download to my device without opening.

In my experience with other browsers, the behavior is similar to the first case, but downloaded files are not opened upon finishing downloading, only doing so if the file is clicked on in the download menu during or after downloading. Is there any way to replicate this behavior?

When Content Type PDF is set to Open in Firefox in Settings, some hyperlinks (see 'Download PDF' on https://arxiv.org/abs/2402.00923) will navigate to the hosted PDF without downloading to my computer. Others (see 'Download PDF' on https://www.overleaf.com/project/65c142c6d78ec5a8a34636b0) will download to my device then open the downloaded file in browser. (I am also interested in what causes this distinction in the first place.) When it is set to Save File, both types of links will download to my device without opening. In my experience with other browsers, the behavior is similar to the first case, but downloaded files are not opened upon finishing downloading, only doing so if the file is clicked on in the download menu during or after downloading. Is there any way to replicate this behavior?

Giải pháp được chọn

Files can be "inline" (open) or "attachment" (download) according to Content-Disposition. You can make attachment PDFs save without opening by changing browser.download.force_save_internally_handled_attachments to true in about:config.

Đọc câu trả lời này trong ngữ cảnh 👍 1

Tất cả các câu trả lời (2)

more options

Apologies, the Overleaf link above will not work. Here is a new one https://www.overleaf.com/read/qkccsbnthvgb#a06e10

Hữu ích?

more options

Giải pháp được chọn

Files can be "inline" (open) or "attachment" (download) according to Content-Disposition. You can make attachment PDFs save without opening by changing browser.download.force_save_internally_handled_attachments to true in about:config.

Hữu ích?

Đặt một câu hỏi

Bạn phải đăng nhập vào tài khoản của bạn để trả lời bài viết. Vui lòng bắt đầu một câu hỏi mới, nếu bạn chưa có tài khoản.