diff --git a/assets/js/shimapan.js b/assets/js/shimapan.js index 4fd164d..22ce0d3 100644 --- a/assets/js/shimapan.js +++ b/assets/js/shimapan.js @@ -129,7 +129,10 @@ document.addEventListener('DOMContentLoaded', function() { } } else { var response = JSON.parse(xhr.responseText); - link.textContent = response.description; + if (response.description == 'The uploaded file exceeds the upload_max_filesize directive in php.ini') + link.textContent = 'File too large!'; + else + link.textContent = 'Internal Server Error!'; url.appendChild(link); } }