最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

No url when downloading PDF

programmeradmin1浏览0评论

I've a password protected webpage where uses can download PDFs. When clicking on the Download button, the PDF is uploaded by creating a URL, which works nice but that URL is then visible for everyone.

How can prevent this and get the Download button ask for saving the PDF instead of opening a URL page. Is there a Plugin or another simple trick? I likely miss something.

Thank you for your support, greetings from the Netherlands. Eric

I've a password protected webpage where uses can download PDFs. When clicking on the Download button, the PDF is uploaded by creating a URL, which works nice but that URL is then visible for everyone.

How can prevent this and get the Download button ask for saving the PDF instead of opening a URL page. Is there a Plugin or another simple trick? I likely miss something.

Thank you for your support, greetings from the Netherlands. Eric

Share Improve this question asked Nov 6, 2019 at 21:39 DeZeemeerminDeZeemeermin 33 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

See the answer here https://stackoverflow/a/13839507/1466973 , which involves sending headers with the appropriate values to cause the 'save as' dialog box to appear.

That process will allow you to not provide the URL (which anyone can share), but provide the file (which people can share after they download).

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论