Commit ebf76c2c authored by unknown's avatar unknown
Browse files

Alternative downloadable file link attempt.

parent 03595b49
Pipeline #170924 passed with stages
in 48 seconds
......@@ -42,12 +42,13 @@ public class HTMLResultPage implements Page {
downloadableFileWriter.write(answer);
// Reference file in html
writer.println("<p>" +
String.format("<a href=\"/%s\" download>", downloadableFileName) +
String.format("<a id=\"download_link\" href=\"\" download=\"%s\">", downloadableFileName) +
"Download file</a>" +
"</p>");
downloadableFileWriter.close();
} else {
// File already exists
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment