From 833cc55c5d271e08ae6cd2e9d2d31124f4be3148 Mon Sep 17 00:00:00 2001 From: Andrew Date: Mon, 23 Aug 2021 17:52:55 -0400 Subject: [PATCH] Fixes upload indicator Fixes max-body-size --- .../templates/panel/server_files.html | 31 ++++++++++--------- app/frontend/templates/panel/server_term.html | 2 +- 2 files changed, 17 insertions(+), 16 deletions(-) diff --git a/app/frontend/templates/panel/server_files.html b/app/frontend/templates/panel/server_files.html index 24476d5c..0b85298e 100644 --- a/app/frontend/templates/panel/server_files.html +++ b/app/frontend/templates/panel/server_files.html @@ -583,17 +583,18 @@ label: "Upload", className: "btn-default", callback: async function () { + var height = files.files.length*50; + + var waitMessage = '

'+ + ''+ + 'Please wait while we upload your files... This may take a while.
'+ + 'DO NOT CLOSE THIS PAGE.'+ + '

'+ + '
'+ + '
' files = document.getElementById("files"); uploadWaitDialog = bootbox.dialog({ - message: ` -

- - Please wait while we upload your files... This may take a while.
- DO NOT CLOSE THIS PAGE. -

-
-
- `, + message: waitMessage, closeButton: false }); let nFiles = files.files.length; @@ -603,20 +604,20 @@ hideUploadBox(); break; } - console.log(files.files[i]); + console.log(files.files[i].name); const progressHtml = ` -
- ${path + '/' + files.files[i]}: -
+ ${files.files[i].name}: +
-
+

`; $('#upload-progress-bar-parent').append(progressHtml); sendFile(files.files[i], path, server_id, (progress) => { diff --git a/app/frontend/templates/panel/server_term.html b/app/frontend/templates/panel/server_term.html index 0b660a29..80db63d0 100644 --- a/app/frontend/templates/panel/server_term.html +++ b/app/frontend/templates/panel/server_term.html @@ -67,7 +67,7 @@ - + T