<a href="file:///C:/test/cani.docx">Open the file</a>
You can use the file:// protocol
To use the file:// protocol to open
try like thismove the file to a directory accessible by your web server (e.g., within your XAMPP's htdocs directory) and use a relative or absolute URL
<style>
html,
body {
padding: 0;
margin: 1rem;
}
h4 {
margin-bottom: .5rem;
}
a {
display: block;
}
a + a {
margin-top: .5rem;
}
</style>
<h4>Relative</h4>
<a href="dashboard/docdigitalizzaz/documento/test/cani.docx">Open the file 3</a>
<a href="./dashboard/docdigitalizzaz/documento/test/cani.docx">Open the file 3</a>
<h4>Absolute</h4>
<a href="http://localhost/dashboard/docdigitalizzaz/documento/test/cani.docx">Open the file 3</a>
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.