summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--files.gumx.cc/body.html2
-rw-r--r--files.gumx.cc/upload.html4
-rw-r--r--wk.fo/body.html2
-rw-r--r--wk.fo/upload.html4
4 files changed, 6 insertions, 6 deletions
diff --git a/files.gumx.cc/body.html b/files.gumx.cc/body.html
index 19e0bff..33ba33c 100644
--- a/files.gumx.cc/body.html
+++ b/files.gumx.cc/body.html
@@ -1,7 +1,7 @@
<p>File hosting via <a href="https://github.com/mia-0/0x0">0x0</a>. Uploads require a token.</p>
<h2>upload</h2>
<p>Use the <a href="/upload">web form</a> or curl:</p>
-<pre><code>curl -F "file=@photo.jpg" -H "Authorization: Bearer YOUR_TOKEN" https://files.gumx.cc/</code></pre>
+<pre><code>curl -F "file=@photo.jpg" -H "Authorization: YOUR_TOKEN" https://files.gumx.cc/</code></pre>
<p>Files expire after 24 hours by default. Max 256 MB.</p>
<h2>access</h2>
<p>Contact <a href="mailto:hi@gumx.cc">hi@gumx.cc</a> to request a token.</p>
diff --git a/files.gumx.cc/upload.html b/files.gumx.cc/upload.html
index e82bd96..d190474 100644
--- a/files.gumx.cc/upload.html
+++ b/files.gumx.cc/upload.html
@@ -41,7 +41,7 @@ button { cursor: pointer; }
<p><button onclick="upload()">upload</button></p>
<p id="result"></p>
<h2>curl</h2>
-<pre><code>curl -F "file=@photo.jpg" -H "Authorization: Bearer YOUR_TOKEN" https://files.gumx.cc/</code></pre>
+<pre><code>curl -F "file=@photo.jpg" -H "Authorization: YOUR_TOKEN" https://files.gumx.cc/</code></pre>
</main>
<footer>
<hr>
@@ -68,7 +68,7 @@ async function upload() {
fd.append('file', file);
const r = await fetch('/', {
method: 'POST',
- headers: { 'Authorization': 'Bearer ' + token },
+ headers: { 'Authorization': token },
body: fd
});
const text = await r.text();
diff --git a/wk.fo/body.html b/wk.fo/body.html
index ac05efb..f945d54 100644
--- a/wk.fo/body.html
+++ b/wk.fo/body.html
@@ -1,7 +1,7 @@
<p>File sharing, IRC, VPN, and tools for friends. Invite required for most services.</p>
<h2>file sharing</h2>
<p>Upload via the <a href="/upload">web form</a> or curl (token required):</p>
-<pre><code>curl -F "file=@photo.jpg" -H "Authorization: Bearer YOUR_TOKEN" https://wk.fo/</code></pre>
+<pre><code>curl -F "file=@photo.jpg" -H "Authorization: YOUR_TOKEN" https://wk.fo/</code></pre>
<p>Files expire after 24 hours by default (max 48h with <code>expires</code> param). Max 256 MB.</p>
<h2>irc</h2>
<p><a href="/chat">web client</a> — requires a soju account. Or connect directly:</p>
diff --git a/wk.fo/upload.html b/wk.fo/upload.html
index 6578afd..ed919da 100644
--- a/wk.fo/upload.html
+++ b/wk.fo/upload.html
@@ -41,7 +41,7 @@ button { cursor: pointer; }
<p><button onclick="upload()">upload</button></p>
<p id="result"></p>
<h2>curl</h2>
-<pre><code>curl -F "file=@photo.jpg" -H "Authorization: Bearer YOUR_TOKEN" https://wk.fo/</code></pre>
+<pre><code>curl -F "file=@photo.jpg" -H "Authorization: YOUR_TOKEN" https://wk.fo/</code></pre>
</main>
<footer>
<hr>
@@ -68,7 +68,7 @@ async function upload() {
fd.append('file', file);
const r = await fetch('/', {
method: 'POST',
- headers: { 'Authorization': 'Bearer ' + token },
+ headers: { 'Authorization': token },
body: fd
});
const text = await r.text();