mirror of
https://github.com/Foltik/Shimapan
synced 2024-12-10 21:48:03 -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 {
|
} 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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user