fnp
/
edumed.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
supervisors for stage 2 assignments
[edumed.git]
/
stage2
/
static
/
js
/
checkfile.js
diff --git
a/stage2/static/js/checkfile.js
b/stage2/static/js/checkfile.js
index
5482688
..
9d1ae97
100644
(file)
--- 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;
}
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) {
}
var size = this.files[0].size;
if (size > 20 * 1024 * 1024) {