I am trying to download a file that is on the local device I have a code in anchor tag like
<a href="/home/ubuntu/Documents/uploads/orderInvoice/invoice.pdf"
target="_self"
download>Download</a>
when I browse the path in browser then it opens up but in jquery, the server path localhost:3000 is appended at the beginning
I have tried the file path like file:///home/ubuntu/Documents/uploads/orderInvoice/invoice.pdf but it is also not working