1
0
mirror of https://github.com/Foltik/Shimapan synced 2024-12-11 05:52:18 -05:00

Add proper filesize limit text

This commit is contained in:
Foltik 2016-08-14 23:01:44 -04:00
parent cf4b4418f6
commit d6a72236c3

View File

@ -129,7 +129,10 @@ document.addEventListener('DOMContentLoaded', function() {
} }
} else { } else {
var response = JSON.parse(xhr.responseText); 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); url.appendChild(link);
} }
} }