mirror of
https://github.com/Foltik/Shimapan
synced 2024-11-13 00:26:55 -05:00
Add proper filesize limit text
This commit is contained in:
parent
cf4b4418f6
commit
d6a72236c3
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user