I have an xml file to be downloaded. As you all know when i give the below link
<a href="some.xml">Downlad XML</a>
The XML will open in a new tab displaying it. However I would like to know if there is a way, this can downloaded like other files such as a .zip file
After trying a lot of solutions, This worked for me.
Try to provide a dummy argument to the file link as shown below.
<a href="http://link/to/the/file.xml?dummy=dummy" download>Download Now</a>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With