X-Git-Url: https://git.mdrn.pl/edumed.git/blobdiff_plain/d4e30da6169912cf6de8557a5dcb8b978b5d9fb5..eb86b37548068a37248eeb24b48656a0c88cd034:/stage2/static/js/checkfile.js diff --git a/stage2/static/js/checkfile.js b/stage2/static/js/checkfile.js index 5482688..9d1ae97 100644 --- a/stage2/static/js/checkfile.js +++ b/stage2/static/js/checkfile.js @@ -14,6 +14,10 @@ $(function() { alert('Błędne rozszerzenie! Powinno być: ' + ext); ok = false; } + if (name.length > 65) { + alert('Za długa nazwa pliku! Maksymalna długość: 65 znaków (jest: ' + name.length + ')'); + ok = false; + } } var size = this.files[0].size; if (size > 20 * 1024 * 1024) {