|
@@ -37,10 +37,10 @@
|
|
|
|
|
|
<script>
|
|
<script>
|
|
const params = new URLSearchParams(window.location.search);
|
|
const params = new URLSearchParams(window.location.search);
|
|
- const downloadName = params.get('download');
|
|
+ const downloadName = params.get('downloadFile');
|
|
if(downloadName){
|
|
if(downloadName){
|
|
document.getElementById("fileForm").reset()
|
|
document.getElementById("fileForm").reset()
|
|
- $.get('/download', { filename: downloadName }).done(function(data){
|
|
+ $.get(params.get('downloadUrl'), { filename: downloadName }).done(function(data){
|
|
let link = document.createElement('a');
|
|
let link = document.createElement('a');
|
|
link.href = 'data:text/plain;charset=utf-8,' + encodeURIComponent(data);
|
|
link.href = 'data:text/plain;charset=utf-8,' + encodeURIComponent(data);
|
|
link.download = downloadName;
|
|
link.download = downloadName;
|