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

0

See the answer here https://stackoverflow.com/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).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.