G
G
Gokilla2017-10-15 23:50:27
JavaScript
Gokilla, 2017-10-15 23:50:27

File not downloading from website?

I set up APACHE TOMCAT and put the code in index.html:

<html>
<p><a href="D:\game.zip" download>Скачать файл</a><br>
<script>
alert("hello world");
document.write("hello world!");
</script>
</html>

When I click on the download file, it says: Network error. What is the problem?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
G
Gokilla, 2017-10-18
@Gokilla

I uploaded the archive to %catalina_home%/webapps/ROOT and changed

<html>
<p><a href="game.zip" download>Скачать файл</a><br>
<script>
alert("hello world");
document.write("hello world!");
</script>
</html>

and earned

D
Dimonchik, 2017-10-16
@dimonchik2013

in logs

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question