diff --git a/templates/index.html b/templates/index.html
index 329ebef8..bcd14252 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -146,15 +146,25 @@
@@ -218,7 +228,6 @@
form.onsubmit = async function (event) {
event.preventDefault(); // prevent default form submission
- // this if is not correct i fink
// {% if args.encryption_client_side || args.encryption_server_side %}
if (passwordField.value.trim() != "") {
if (fileOversized()) return false;
@@ -249,7 +258,9 @@
hiddenEncryptedClientSide.name = "";
content.value = contentInput.value;
}
- // ????
+ // {%- else %}
+ hiddenEncryptedClientSide.name = "";
+ content.value = contentInput.value;
// {%- endif %}
if (contentInput.value.trim() == "" && hiddenFileButton.files.length == 0) {
@@ -257,6 +268,7 @@
return false;
}
+
form.submit();
};