I need some guidance regarding how to download a file.

Suppose I have a link called "Download." When I click on the particular link a PDF file should be downloaded.

How can I do this?

  1. Make the link point to the PDF file
  2. Make sure that the PDF is public accessible.

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.