summaryrefslogtreecommitdiff
path: root/templates/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/index.html')
-rw-r--r--templates/index.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/index.html b/templates/index.html
index 8bb0e38..75f504c 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -36,7 +36,7 @@
resourceId = xhr.getResponseHeader("X-Resource-ID");
}
}
- xhr.open("POST", "/upload", true);
+ xhr.open("POST", "{{.ProxyPrefix}}/upload", true);
xhr.setRequestHeader("X-Token", token);
ldot = f.name.lastIndexOf(".");
if (ldot > -1) {
@@ -66,7 +66,7 @@ This ID can then be used to get the file by sending a GET request to /[resourceI
If enabled on the server, the resource can be deleted by sending a DELETE request to /[resourceID].
Again if a token has been set on the server, use a X-Token header when sending the request.</pre>
- {{ if . }}
+ {{ if .Token }}
<input type="text" id="token" placeholder="token"/>
{{end}}
<input type="file" id="file"/><br/><br/>