summaryrefslogtreecommitdiff
path: root/templates/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/index.html')
-rw-r--r--templates/index.html6
1 files changed, 5 insertions, 1 deletions
diff --git a/templates/index.html b/templates/index.html
index 3291d8e..0186d89 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -37,7 +37,11 @@
}
}
xhr.open("POST", "/upload", true);
- xhr.setRequestHeader("X-Token", token)
+ xhr.setRequestHeader("X-Token", token);
+ ldot = f.name.lastIndexOf(".");
+ if (ldot > -1) {
+ xhr.setRequestHeader("X-ResourceMeta-Extension", f.name.substring(ldot))
+ }
xhr.send(f)
}
</script>