diff --git a/src/main/resources/templates/index.html b/src/main/resources/templates/index.html index d9c67b3..41f0e2c 100644 --- a/src/main/resources/templates/index.html +++ b/src/main/resources/templates/index.html @@ -47,6 +47,10 @@ var pasteInput = document.getElementById('paste-input'); var paste = pasteInput.value; + if (!paste || paste.trim() === ''){ + return; + } + fetch('/api/upload', { method: 'POST', headers: {