I am trying to open a file through a jsp page. The file is in a specified location in my server. I have used the below piece of code.
- This code is working in my local and not when I run it through my localhost in Tomcat server. In the server, it is only working if the copy the file to the current directory.
- This works only in Chrome
Can someone help. Thanks.
<!DOCTYPE html>
<html>
<head>
</head
<body>
<a href="W:\New folder\18090Calendar.png" download="18090Calendar.png" target="_new-tab">Image</a>
<body>
</html>