The download attribute is only used if the href attribute is set. will automatically detect the correct file extension and add it to the file (.img, .pdf, .txt, .html, etc.). browser will automatically detect the correct file extension and add it to the file (.img, .pdf, .txt, .html, etc.) Instead of linking to the .PDF file, instead do something like Download my eBook. 3 Oct 2019 You'll be adding your download link to an HTML web page. If you don't You can upload pretty much any type of file, from PDF files to ZIP files.