summaryrefslogtreecommitdiffstats
path: root/data/js/upload_form.js
diff options
context:
space:
mode:
Diffstat (limited to 'data/js/upload_form.js')
-rw-r--r--data/js/upload_form.js16
1 files changed, 0 insertions, 16 deletions
diff --git a/data/js/upload_form.js b/data/js/upload_form.js
deleted file mode 100644
index 111747c67..000000000
--- a/data/js/upload_form.js
+++ /dev/null
@@ -1,16 +0,0 @@
-// check file size before uploading if browser support html5
-if (window.File && window.FileList) {
- function checkFileUpload(evt) {
- var f = evt.target.files[0];
- if (f.size > max_upload_size) {
- document.getElementById('upload_button').innerHTML = "File too big";
- document.getElementById('upload_button').disabled = true;
- } else {
- document.getElementById('upload_button').innerHTML = "Upload it!";
- document.getElementById('upload_button').disabled = false;
- }
- }
-
- document.getElementById('file').addEventListener('change', checkFileUpload, false);
-}
-