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

Lolu chungechunge lwabekwa kunqolobane. Uyacelwa ubuze umbuzo omusha uma udinga usizo.

Force Firefox to Download PDF from Website

  • 1 baphendule
  • 1 inale nkinga
  • 2 views
  • Igcine ukuphendulwa ngu TyDraniu

more options

Is there any code that I can add to our website that will over-ride the browser configuration and force Firefox to download a PDF instead of opening it it?

Is there any code that I can add to our website that will over-ride the browser configuration and force Firefox to download a PDF instead of opening it it?

All Replies (1)

more options

On the server side you can set the response header Content-Disposition: attachment for that type of files.

See https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Disposition