I am trying to make a website in Java and trying to add upload system. I am using the following tag:
<a href="filepath/filename" download > Download It </a>
but the thing is, if the file is text file it doesn't start downloading. Instead it just opens the text. Also when I start the server on eclipse it works fine but when I type the same link in chrome, It says: Failed - Network error.
Any suggestions?