diff options
| author | Julian Hurst <julian.hurst@digdash.com> | 2025-04-02 17:39:43 +0200 |
|---|---|---|
| committer | Julian Hurst <julian.hurst@digdash.com> | 2025-04-02 17:39:43 +0200 |
| commit | 5702d9fd74d19cc1b8ce9498d4e8bc448da9768e (patch) | |
| tree | f0277c0988bac46155088a64bbd610e708d5dd16 /templates | |
| parent | 7553813376f94e3ae287de78efe413662cd8f967 (diff) | |
| download | box-5702d9fd74d19cc1b8ce9498d4e8bc448da9768e.tar.gz | |
Support a proxy prefix via BOX_PROXY_PREFIX
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/index.html | 4 |
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/> |
