“name” web pdf for better default save filename in Acrobat?

后端 未结 16 1746
难免孤独
难免孤独 2020-12-14 00:09

My app generates PDFs for user consumption. The \"Content-Disposition\" http header is set as mentioned here. This is set to \"inline; filename=foo.pdf\", which should be

16条回答
  •  青春惊慌失措
    2020-12-14 00:55

    You could always have two links. One that opens the document inside the browser, and another to download it (using an incorrect content type). This is what Gmail does.

提交回复
热议问题