X-Git-Url: https://jfr.im/git/uguu.git/blobdiff_plain/180e80182f6877e688091580d9ce3cbf3869ebed..8b70bc30ce00e8a90339b3eef9a32a2ce66c74f7:/static/js/app.js?ds=sidebyside diff --git a/static/js/app.js b/static/js/app.js index 0e843e2..eecf779 100644 --- a/static/js/app.js +++ b/static/js/app.js @@ -130,8 +130,11 @@ document.addEventListener('DOMContentLoaded', function() { } else if (respStatus === 413) { link.textContent = 'File too big!'; url.appendChild(link); + } else if (respStatus === 415) { + link.textContent = 'Filetype not allowed!'; + url.appendChild(link); } else { - link.textContent = 'Filetype not allowed or server error!'; + link.textContent = 'Server error!'; url.appendChild(link); } }