From d6a72236c37cb6d5fae89bd1d404b71e317fd44f Mon Sep 17 00:00:00 2001 From: Foltik Date: Sun, 14 Aug 2016 23:01:44 -0400 Subject: [PATCH] Add proper filesize limit text --- assets/js/shimapan.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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); } }